Hello, I am currently making a game that involves a brick being touched, when touched the individual player's walkspeed changes. Here's what I currently have. (I did insert a humanoid named 'StarterHumanoid')
script.Parent.Touched:Connect(function(hit) game.StarterPlayer.StarterHumanoid.WalkSpeed = 30 end)
Any help would be appreciated, thanks!
script.Parent.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then hit.Parent.Humanoid.WalkSpeed = 30 end end)