misosoup1
|
  |
| Joined: 22 Jan 2011 |
| Total Posts: 286 |
|
|
| 13 Feb 2016 04:34 PM |
local player = game.Players.LocalPlayer local character = player.Character
function change() character.Humanoid.WalkSpeed = character.Humanoid.Health^0.60206 end
character.Humanoid.Changed:connect(change)
//
Do I have to put it in a local script or is it something else? |
|
|
| Report Abuse |
|
|
|
| 13 Feb 2016 04:35 PM |
| Yes you have to put it in a local script. You must also disable filtering. |
|
|
| Report Abuse |
|
|
misosoup1
|
  |
| Joined: 22 Jan 2011 |
| Total Posts: 286 |
|
| |
|
misosoup1
|
  |
| Joined: 22 Jan 2011 |
| Total Posts: 286 |
|
| |
|
|
| 13 Feb 2016 04:53 PM |
| Is there an error? Press F9 in-game and check the red errors. |
|
|
| Report Abuse |
|
|
misosoup1
|
  |
| Joined: 22 Jan 2011 |
| Total Posts: 286 |
|
|
| 13 Feb 2016 04:55 PM |
| attempted to index local 'character' |
|
|
| Report Abuse |
|
|
|
| 13 Feb 2016 04:57 PM |
| Character doesn't exist, probably when you tried to make a reference to the Player's character it was nil. Add a wait, or add something that waits until the character exists. |
|
|
| Report Abuse |
|
|
gangman67
|
  |
| Joined: 04 Jun 2011 |
| Total Posts: 798 |
|
|
| 13 Feb 2016 04:58 PM |
| Your not waiting for the character to be added |
|
|
| Report Abuse |
|
|
|
| 13 Feb 2016 04:58 PM |
Add this after the first line of code
repeat wait() until player.Character |
|
|
| Report Abuse |
|
|
misosoup1
|
  |
| Joined: 22 Jan 2011 |
| Total Posts: 286 |
|
| |
|