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 » Scripters
Home Search
 

Re: animation not working?

Previous Thread :: Next Thread 
Bavarium is not online. Bavarium
Joined: 05 May 2011
Total Posts: 12419
02 Feb 2017 05:01 PM
I used this script to replace the default walk animation, it works as it changes the ID, but it still uses the default animation?

game.Players.PlayerAdded:connect(function(playa)
playa.CharacterAdded:connect(function(character)
character.Animate.walk.WalkAnim.AnimationId = 'http://www.roblox.com/asset/?id=637556679'
end)
end)


how would i fix it


Report Abuse
TheMadGamer321 is not online. TheMadGamer321
Joined: 13 Jul 2015
Total Posts: 211
02 Feb 2017 05:04 PM
animationId is just like numbers and not a link
Report Abuse
Bavarium is not online. Bavarium
Joined: 05 May 2011
Total Posts: 12419
02 Feb 2017 05:06 PM
the default ID's in the animations look like this
http://www.roblox.com/asset/?id=507770677
so theres way thats the problem


Report Abuse
Bavarium is not online. Bavarium
Joined: 05 May 2011
Total Posts: 12419
02 Feb 2017 05:57 PM
bump


Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
02 Feb 2017 06:01 PM
you need to wait because either the animation thing doesn't exist as soon as the character loads, or the animation script changes it after
Report Abuse
Bavarium is not online. Bavarium
Joined: 05 May 2011
Total Posts: 12419
02 Feb 2017 06:03 PM
what do you mean, like wait()?


Report Abuse
Chedder923 is not online. Chedder923
Joined: 10 Jul 2012
Total Posts: 103
02 Feb 2017 06:43 PM
Why not use Animation Handler? its less time consuming
Report Abuse
Chedder923 is not online. Chedder923
Joined: 10 Jul 2012
Total Posts: 103
02 Feb 2017 06:49 PM
Put this in a script its for script upon entering the game
function onPlayerRespawned(newPlayer)
while true do
if newPlayer.Character:findFirstChild("Animate")~=nil then break end
wait()
end
newPlayer.Character.Animate.Disabled = true
local c = script.Anima:Clone()
c.Parent = newPlayer.Character
c.Disabled = false
end

function onPlayerEntered(newPlayer)
newPlayer.Changed:connect(function (property)
if (property == "Character") then
onPlayerRespawned(newPlayer)
end
end)
end

game.Players.PlayerAdded:connect(onPlayerEntered)
Report Abuse
Xstarlight is not online. Xstarlight
Joined: 18 Oct 2012
Total Posts: 870
02 Feb 2017 06:53 PM
rbxassetid://######


1,000,128 Mouse clicks currently counted!
Report Abuse
Eventive is not online. Eventive
Joined: 28 Jul 2011
Total Posts: 9827
02 Feb 2017 06:55 PM
Instead of doing that, take the Animate script from inside the plyaer, put it in StarterPlayer>StarterCharacterScripts, then go to the values and animations, then change the Id from there. That will change the animations.


ATR'er since 2013.
Report Abuse
Eventive is not online. Eventive
Joined: 28 Jul 2011
Total Posts: 9827
02 Feb 2017 06:57 PM
Here is the animate script, just go to it's children and go to the walk, then WalkAnim, and inside Properties change it to rbxassetid://637556679


ATR'er since 2013.
Report Abuse
Eventive is not online. Eventive
Joined: 28 Jul 2011
Total Posts: 9827
02 Feb 2017 06:58 PM
Forgot the link, whoops! Here you go:

https://www.roblox.com/library/637551877/R15-Animate-Script-DESC


Much easier than doing it from a player and character added function. You can change the other anims too.


ATR'er since 2013.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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