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"] = 133226513780673,
- ["idle2"] = 86910986368891,
- ["walk"] = 84782014405060,
- ["run"] = 85232146719894,
- ["jump"] = 140300561900880,
- ["climb"] = 94364927317793,
- ["fall"] = 129591520941189,
- ["swim"] = 117741052845105,
- ["swimidle"] = 133871172755161
- }
- 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"]
- hum:ChangeState(3)
- Animate.Disabled = false
Advertisement
Add Comment
Please, Sign In to add comment