Why Nostr? What is Njump?
2023-02-14 07:07:30

TZH on Nostr: local carModel = game.Workspace.CarModel -- Replace with the name of your car model ...

local carModel = game.Workspace.CarModel -- Replace with the name of your car model
local seat = carModel.Seat -- Replace with the name of your car's seat

game.Players.PlayerAdded:Connect(function(player)
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")

-- Wait for the player to be loaded into the game
humanoid.Died:Wait()

-- Respawn the player when they die
player:LoadCharacter()
end)

-- Wait for the car and seat to be loaded in the game
carModel:WaitForChild("Seat")

-- Clone the seat for each player who joins the game
game.Players.PlayerAdded:Connect(function(player)
local newSeat = seat:Clone()
newSeat.Parent = carModel
newSeat.Disabled = false

player.CharacterAdded:Connect(function(character)
-- Move the player to the car's seat
local humanoid = character:WaitForChild("Humanoid")
humanoid.SeatPart = newSeat
end)
end)
Author Public Key
npub1e3axwaz52trqqftmxg2v0r24n400vudfkf6gylztm84aw5ut3agsydvk4e