Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local clonefunction = clonefunction or clonefunction(clonefunction) or function(...) return ... end
- local genv = clonefunction(getgenv)() or _G or shared
- local cloneref = cloneref or getgenv().cloneref or clonefunction(cloneref) or function(...) return ... end
- getgenv().customanims = {
- ["idle1"] = 86481260083940,
- ["idle2"] = 130346692690001,
- ["walk"] = 140233961550679,
- ["run"] = 140233961550679,
- ["jump"] = 106675315699522,
- ["climb"] = 107153131584150,
- ["fall"] = 93491041666792,
- --["death"] = ,
- ["swim"] = 140233961550679,
- ["swimidle"] = 88624296373157,
- ["laugh"] = 113442867466734,
- -- ["sit"] = 116354007367823,
- ["wave"] = 123289543081081,
- ["dance"] = 89676212115777,
- ["dance2"] = 89676212115777,
- ["dance3"] = 119093668447341
- }
- local Players = cloneref(game:GetService("Players"))
- local plr = Players.LocalPlayer
- local chr = plr.Character or plr.CharacterAdded:Wait()
- local Animate = plr.Character:FindFirstChild("Animate")
- local hum = plr.Character:FindFirstChildOfClass("Humanoid")
- local function StopAnim()
- Animate.Disabled = false
- local animtrack = hum:GetPlayingAnimationTracks()
- for i, track in pairs(animtrack) do
- track:Stop()
- end
- end
- Animate.Disabled = true
- StopAnim()
- Animate.idle.Animation1.AnimationId = "http://www.roblox.com/asset/?id=" .. getgenv().customanims["idle1"]
- Animate.idle.Animation2.AnimationId = "http://www.roblox.com/asset/?id=" .. getgenv().customanims["idle2"]
- Animate.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=" .. getgenv().customanims["walk"]
- Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=" .. getgenv().customanims["run"]
- Animate.jump.JumpAnim.AnimationId = "http://www.roblox.com/asset/?id=" .. getgenv().customanims["jump"]
- Animate.climb.ClimbAnim.AnimationId = "http://www.roblox.com/asset/?id=" .. getgenv().customanims["climb"]
- Animate.fall.FallAnim.AnimationId = "http://www.roblox.com/asset/?id=" .. getgenv().customanims["fall"]
- Animate.swim.Swim.AnimationId = "http://www.roblox.com/asset/?id=" .. getgenv().customanims["swim"]
- Animate.swimidle.SwimIdle.AnimationId = "http://www.roblox.com/asset/?id=" .. getgenv().customanims["swimidle"]
- --extra
- --Animate.sit.SitAnim.AnimationId = "http://www.roblox.com/asset/?id=" .. getgenv().customanims["sit"]
- Animate.laugh.LaughAnim.AnimationId = "http://www.roblox.com/asset/?id=" .. getgenv().customanims["laugh"]
- Animate.wave.WaveAnim.AnimationId = "http://www.roblox.com/asset/?id=" .. getgenv().customanims["wave"]
- --Animate.death.DeathAnim.AnimationId = "http://www.roblox.com/asset/?id=" .. getgenv().customanims["death"] --???
- Animate.dance.Animation1.AnimationId = "http://www.roblox.com/asset/?id=" .. getgenv().customanims["dance"]
- Animate.dance.Animation2.AnimationId = "http://www.roblox.com/asset/?id=" .. getgenv().customanims["dance"]
- Animate.dance.Animation3.AnimationId = "http://www.roblox.com/asset/?id=" .. getgenv().customanims["dance"]
- Animate.dance2.Animation1.AnimationId = "http://www.roblox.com/asset/?id=" .. getgenv().customanims["dance2"]
- Animate.dance2.Animation2.AnimationId = "http://www.roblox.com/asset/?id=" .. getgenv().customanims["dance2"]
- Animate.dance2.Animation3.AnimationId = "http://www.roblox.com/asset/?id=" .. getgenv().customanims["dance2"]
- Animate.dance3.Animation1.AnimationId = "http://www.roblox.com/asset/?id=" .. getgenv().customanims["dance3"]
- Animate.dance3.Animation2.AnimationId = "http://www.roblox.com/asset/?id=" .. getgenv().customanims["dance3"]
- Animate.dance3.Animation3.AnimationId = "http://www.roblox.com/asset/?id=" .. getgenv().customanims["dance3"]
- hum:ChangeState(3)
- Animate.Disabled = false
Advertisement