|
| 18 Jul 2014 10:33 PM |
Why isn't this working?
local mouse = game.Players.LocalPlayer:GetMouse()
mouse.KeyDown:connect(function(key) if key == "q" then game.Players.LocalPlayer.Character.Animate.walk.Value = (167118299) end end) |
|
|
| Report Abuse |
|
|
|
| 18 Jul 2014 10:36 PM |
| needs to be in a localscript |
|
|
| Report Abuse |
|
|
|
| 18 Jul 2014 10:38 PM |
| It is... Its saying "Charecter is not a valid member of Player" :I |
|
|
| Report Abuse |
|
|
|
| 18 Jul 2014 10:40 PM |
"Charecter"? Should be "Character"
If thats not the problem then put this in:
game.Players.LocalPlayer.CharacterAdded:connect(function(Char) --Code end) |
|
|
| Report Abuse |
|
|
|
| 18 Jul 2014 10:43 PM |
Derp :O But it also it says something is wrong with line five, am I trying to change the value the wrong way? :I |
|
|
| Report Abuse |
|
|
MHebes
|
  |
| Joined: 04 Jan 2013 |
| Total Posts: 2278 |
|
|
| 18 Jul 2014 10:47 PM |
Ignore Brickman, he thinks the problem is something else.
This line is wrong, I think: game.Players.LocalPlayer.Character.Animate.walk.Value = (167118299)
First of all, Animate's 'walk' value (and the others) are just containers - they don't actually determine the animation. Change the WalkAnim's AnimationId instead. Also, you define ID's differently.
game.Players.LocalPlayer.Character.Animate.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=167118299" |
|
|
| Report Abuse |
|
|