So this would be a very simple example using print(). For example you wanted to set a player’s speed to 20:
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
character.Humanoid.WalkSpeeed = 20
end)
end)
Let’s just say you were not sure if the individual lines would run. So you would do something like:
game.Players.PlayerAdded:Connect(function(player)
print(player.Name)
end)
So the output will be (in my case) “DevOkami”. Now I know that it works, I would do:
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
print(character.Parent.Name) --Or anything else that lets you know the character is a character, just play around.
end)
end)
And finally to check if the WalkSpeed actually changes, we can do:
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
print(character.Humanoid.WalkSpeeed)
end)
end)
And it should be 16. Something like that, just to save you from writing the entire script beforehand. Note that for a relatively simple script like this you should not take so many steps, but if you are having problems drafting out scripts then this would help (in my opinion) haha.