| |
|
|
| 13 Dec 2015 05:46 PM |
ok, this is fairly simple but ill just provide an example script to look on
local player = game.Players.LocalPlayer local Character = game.Workspace:WaitForChild(player.Name) local Humanoid = Character:WaitForChild('Humanoid')
local Animation = (ur animation location) local AnimationRun = Humanoid:LoadAnimation(Animation)
AnimationRun:Play() |
|
|
| Report Abuse |
|
|
|
| 13 Dec 2015 06:25 PM |
| It dosen't work. it says "Unable to cast value to Object" |
|
|
| Report Abuse |
|
|
|
| 13 Dec 2015 06:33 PM |
As long as you got a animation ID/Assets all set, here i what ya gotta do.
Use the following script as a little guide.
-------------------------------------------------------------------
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) player.Character.Animate.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=314664123" -- Insert the ID here-- player.Character.Animate.jump.JumpAnim.AnimationId = "http://www.roblox.com/asset/?id=315056706" -- Insert the ID here-- player.Character.Animate.fall.FallAnim.AnimationId = "http://www.roblox.com/asset/?id=125750702" -- Insert the ID here-- end) end)
-----------------------------
Just paste the script into studio ''Workspace'' Then edit the ''ID= (insert your animation ID here)
I'm bad with explaining so forgive me if what i said made no sense xD. |
|
|
| Report Abuse |
|
|
|
| 13 Dec 2015 06:37 PM |
no i dont want it in studio. i just wanna know how to do an animation script without pasting in models or using studio. i just want it to animate in the game. but thanks though. |
|
|
| Report Abuse |
|
|
|
| 13 Dec 2015 06:44 PM |
I'm a bit confused but if you are trying to MAKE an animation then use teh plugin
|
|
|
| Report Abuse |
|
|
|
| 13 Dec 2015 06:45 PM |
| Nvm, you need studio for that obviously. |
|
|
| Report Abuse |
|
|
hkep
|
  |
| Joined: 19 Jul 2014 |
| Total Posts: 550 |
|
|
| 13 Dec 2015 06:50 PM |
local Player = game.Players.LocalPlayer; local AnimId = (your id);
local URL = ("http://www.roblox.com/asset/?id="); local Anim = (URL..tostring(AnimId)); Player.CharacterAdded:connect(function(Char) local Hum = Char:WaitForChild("Humanoid"); local Track = Hum:LoadAnimation(Anim) Track:Play(); return nil; end); |
|
|
| Report Abuse |
|
|
| |
|
hkep
|
  |
| Joined: 19 Jul 2014 |
| Total Posts: 550 |
|
|
| 13 Dec 2015 10:02 PM |
local AnimId = (your integer value ID) AnimId is not an Object, it is the id of your animation The animation HAS to be exported to roblox, then you HAVE to get the animation id from it. |
|
|
| Report Abuse |
|
|
cgjnm
|
  |
| Joined: 22 Dec 2011 |
| Total Posts: 2347 |
|
|
| 13 Dec 2015 10:07 PM |
| What do you mean you don't want it in Studio? |
|
|
| Report Abuse |
|
|
cgjnm
|
  |
| Joined: 22 Dec 2011 |
| Total Posts: 2347 |
|
|
| 13 Dec 2015 10:08 PM |
are you talking about typing
/e dance /e dance2 /e dance3 /e point /e wave /e laugh /e cheer |
|
|
| Report Abuse |
|
|
|
| 14 Dec 2015 04:12 PM |
| no like i dont want to paste scripts in parts like in studio. i just want a script that plays the animation soon as i execute it |
|
|
| Report Abuse |
|
|