generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Why isn't this working? :I

Previous Thread :: Next Thread 
legokendall is not online. legokendall
Joined: 07 Aug 2010
Total Posts: 667
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
Brickman2010 is not online. Brickman2010
Joined: 20 Nov 2009
Total Posts: 5547
18 Jul 2014 10:36 PM
needs to be in a localscript
Report Abuse
legokendall is not online. legokendall
Joined: 07 Aug 2010
Total Posts: 667
18 Jul 2014 10:38 PM
It is... Its saying "Charecter is not a valid member of Player" :I
Report Abuse
Brickman2010 is not online. Brickman2010
Joined: 20 Nov 2009
Total Posts: 5547
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
legokendall is not online. legokendall
Joined: 07 Aug 2010
Total Posts: 667
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image