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 |
|
|
|
| 02 Feb 2017 05:04 PM |
| animationId is just like numbers and not a link |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 05 May 2011 |
| Total Posts: 12419 |
|
| |
|
|
| 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
|
  |
| Joined: 05 May 2011 |
| Total Posts: 12419 |
|
|
| 02 Feb 2017 06:03 PM |
what do you mean, like wait()?
|
|
|
| Report Abuse |
|
|
|
| 02 Feb 2017 06:43 PM |
| Why not use Animation Handler? its less time consuming |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 02 Feb 2017 06:53 PM |
rbxassetid://######
1,000,128 Mouse clicks currently counted! |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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 |
|
|