Hi I have been working on my game and my main script for the game. There is a problem to the script. When they all teleport to the lobby I want there speed to go to 16. But it is not working. Can you help? Line 3 and 13
local h = Instance.new("Hint", workspace)
local b = Instance.new("Hint", workspace)
local humanoid = script.Parent:findFirstChild("Humanoid")
while true do
for g = 10, 0, -1 do
h.Text = "There is " ..g.. " seconds left"
wait(1)
end
for i, v in pairs(game.Players:GetPlayers()) do
v.Character:MoveTo(workspace.lobby.Position)
print("Players teleported!")
humanoid.Walkspeed = 16
end
wait(1)
for t = 10, 1, -1 do
h.Text = "Intermission " ..t
wait(1)
end
for i, v in pairs (game.Players:GetPlayers()) do
v.Character:MoveTo(workspace.SpeedBrick.Position)
print("Game started")
end
end
