#Player seat teleportation help

12 messages · Page 1 of 1 (latest)

silk sapphire
#

Need help on making a player seat in a seat!!!

#
    added.CharacterAdded:Connect(function(chr)

task.wait(1)

        if seat1.Claimed.Value == false then

            print("teleported to seat1")

            chr:PivotTo(seat1.CFrame + Vector3.new(0,2,0))
            seat1.Claimed.Value = true
end
end)
end```
#

this is the script but it works just fine. But the player just teleports ontop of the seat but doesnt sit down

stoic matrix
#

Seat:Sit(humanoid)

silk sapphire
stoic matrix
#

you teleport him before using :Sit()?

#

or after?

#

try that

#
local seat1 = workspace.Seat -- you can delete this if you already define the seat

game.Players.PlayerAdded:Connect(function(added)
    added.CharacterAdded:Connect(function(chr)
        task.wait(1)
        if seat1.Claimed.Value == false then

            print("teleported to seat1")
            local hum = chr:WaitForChild("Humanoid")
            seat1:Sit(hum)
            seat1.Claimed.Value = true
        end
    end)
end)
silk sapphire
silk sapphire
#

tysm < 3