Hello guys, I make question yesterday about how I anchored player when he join the game for 5 seconds and someone answered me and tried the script it works with me in ROBLOX Studio, but when I published the place it doesn't work, It is only work in ROBLOX Studio. Please help me guys. this is the script I used:
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(character)
Player.PlayerScripts.ControlScript.Disabled = true
local humanoid = character:WaitForChild("Humanoid")
if humanoid.RigType == Enum.HumanoidRigType.R15 then
humanoid.PlatformStand = true
wait(5)
Player.PlayerScripts.ControlScript.Disabled = false
humanoid.PlatformStand = false
script:Destroy()
end
end)
end)

2 comments
Is this a localscript or a server script? and where is the script located?
As usually. If you make your own character with HumanoidRootPart Anchored. You will stuck unless you make it unanchored.