|
| 03 Jun 2017 11:55 PM |
| game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = #### ######## ######## if key == "0" then game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = "32" end end game.Players.LocalPlayer:GetMouse().KeyDown:connect(run) function dont(key) if key == "0" then game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = "16" end end game.Players.LocalPlayer:GetMouse().KeyUp:connect(dont) if game.Players.LocalPlayer.Character.Humanoid.WalkSpeed == "32" then end |
|
|
| Report Abuse |
|
|
|
| 03 Jun 2017 11:57 PM |
Error Message
21:53:35.118 - Players.Player1.PlayerGui.LocalScript:1: attempt to index field 'Character' (a nil value) |
|
|
| Report Abuse |
|
|
|
| 03 Jun 2017 11:59 PM |
| ############################# |
|
|
| Report Abuse |
|
|
|
| 04 Jun 2017 12:00 AM |
Add at the top repeat wait() until game.Players.LocalPlayer.Character then at the bottom an end obviously |
|
|
| Report Abuse |
|
|
|
| 04 Jun 2017 12:01 AM |
| If you are in studio your name would be Player1. How can you get that error if the problem is in the server? |
|
|
| Report Abuse |
|
|
|
| 04 Jun 2017 12:04 AM |
| because i went to my profile and pressed the play button on the gameplace... :/ |
|
|
| Report Abuse |
|
|
|
| 04 Jun 2017 02:17 AM |
LocalPlayer:WaitForChild("Character")
#code print("oh no an errorz!") |
|
|
| Report Abuse |
|
|
|
| 04 Jun 2017 02:18 AM |
wait for player and character to be created
player = game.Players.LocalPlayer char = player:WaitForChild("Character")
#code print("oh no an errorz!") |
|
|
| Report Abuse |
|
|
szkiller
|
  |
| Joined: 21 Feb 2014 |
| Total Posts: 360 |
|
|
| 04 Jun 2017 02:51 AM |
| Your script is so inefficient |
|
|
| Report Abuse |
|
|
AxonMega
|
  |
| Joined: 29 Aug 2014 |
| Total Posts: 2403 |
|
| |
|
|
| 04 Jun 2017 03:35 AM |
| Don't worry I helped him fix the script to use userinputservice and gave him comment lines on what it does ^-^ |
|
|
| Report Abuse |
|
|