local Input = game:GetService("UserInputService") UIS.InputBegan:Connect(function(input) if input.KeyCode == Enum.KeyCode.F then game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) character.Humanoid.WalkSpeed = 130
end)
You need to put the PlayerAdded and CharacterAdded functions before
local Input = game:GetService("UserInputService") game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) Input.InputBegan:Connect(function(input) if input.KeyCode == Enum.KeyCode.F then character.Humanoid.WalkSpeed = 130 end end) end) end)
Tell me if that works. Also If it helped don't forget to mark as answered :)
Marked as Duplicate by PrismaticFruits, imKirda, JesseSong, and virushunter9
This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.
Why was this question closed?