Basically, there an error going around my game since i disabled movement from player to force thems to seat in a random seat in the game.
The script:
- Client
require(game.Players.LocalPlayer.PlayerScripts.PlayerModule.ControlModule):Disable()
- Server
game.Players.PlayerAdded:Connect(function(player)
local character = player.Character or player.CharacterAdded:Wait()
character.Humanoid.JumpPower = 0
for _, seat in workspace.Seats:GetChildren() do
if seat:IsA("Seat") then
if seat.Occupant then
continue
end
if seat.Disabled then
continue
end
seat:Sit(character.Humanoid)
break
end
end
end)
The errors:
Is there one way to fix the problem or my game scripting can’t fix this issue?