#Force sit.
38 messages · Page 1 of 1 (latest)
change the HumanoidRootPart's Cframe and Anchor it
that'll move them at the beginning of the game whatever place you want and the anchor will make them not able to move
for the actual sit part idk
How will the script be?
HumanoidRootPart.Anchored = true
HumanoidRootPart.CFrame = Seat.CFrame
how you define HumanoidRootPart depends on the script if you have one
but you'll probably only need to say this at the beginning:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local HumanoidRootPart = player.Character:WaitForChild("HumanoidRootPart")
Ty
I somehow did it but didnt seem to work
local player = Players.LocalPlayer
local HumanoidRootPart = player.Character:WaitForChild("HumanoidRootPart")
local Seat = game.Workspace.Building1["Swan ride 2"]["All Seats"].Seat1
if player then
HumanoidRootPart.Anchored = true
HumanoidRootPart.CFrame = Seat.CFrame
end
you can't just say if player you need to say if player exists then
maybe something like:
local function onCharacterAdded(character) to check then you add the rest of the code
i did this 2 learn myself n i found this was the easiest way to do it: :)
local seat = game.Workspace.Building1["Swan ride 2"]["All Seats"].Seat1
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local hum = char:WaitForChild("Humanoid")
if char:FindFirstChild("Humanoid") then
seat:Sit(hum)
char.HumanoidRootPart.Anchored = true --or u could do: hum.JumpPower = 0 hum.WalkSpeed = 0
end
end)
end)
jump power = 0 isn't enough because they can still walk
actually good point tbf but it shouldnt make a difference too much; but ur 100% right
Oh, Thank you. It worked but im not in the chair
Its funny that im floating in the air
lol
yeah actually do this right
local seat = game.Workspace.Building1["Swan ride 2"]["All Seats"].Seat1
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local hum = char:WaitForChild("Humanoid")
if char:FindFirstChild("Humanoid") then
seat:Sit(hum)
hum.JumpPower = 0
hum.WalkSpeed = 0
end
end)
end)
i had that problem too
It worked. : )

or you could make the humanoidrootpart anchored and save yourself a line
lol
wym bc i tried that n it aint workin
local seat = workspace.car2.carseat
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local hum = char:WaitForChild("Humanoid")
if char:FindFirstChild("Humanoid") then
seat:Sit(hum)
char.HumanoidRootPart.Anchored = true
end
end)
end)
not char.HumanoidRootPart just HumanoidRootPart
@west bear also if the issue's been solved mark this post as solved
🆗
Bro 😭I'm so sorry you had to deal with this shit
You can do Seat:Sit(hum: Humanoid)
The hum would be your players Humanoid
Yeah
Wait, sorry for ping. Does it need to be in a function?