Advertisement
zXzGamePROzXz

Ultimate guest

Jan 22nd, 2019
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  5.  
  6. --[[
  7.     Created by Theamazingnater
  8.     Finally! I learned how to switch between animations depending on what bool is activated!
  9.     Hope you enjoy the new Ultimate Guest script.
  10. --]]
  11. char = game.Players.LocalPlayer.Character
  12. cananimate = true
  13. wait(1)
  14. for i,v in pairs(char:GetChildren()) do
  15.     if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "CharacterMesh" then
  16.         v:Destroy()
  17.     end
  18. end
  19. print([[
  20. Thanks for using my Ultimate Guest script.
  21. This is a newer verison, and I have been waiting to make this.
  22. AND I FINALLY LEARNED HOW TO SWITCH BETWEEN ANIMATIONS!
  23. :D
  24. - Theamazingnater
  25. User is: ]] .. char.Name)
  26. kills = 0
  27. local Shirt = Instance.new("Shirt",char)
  28. Shirt.ShirtTemplate = "rbxassetid://57282083"
  29. -- Bodycolors!
  30. local bdycolors = char:findFirstChild("Body Colors")
  31. bdycolors.TorsoColor3 = Color3.new(1,1,1)
  32. bdycolors.LeftArmColor3 = Color3.new(1,1,1)
  33. bdycolors.RightArmColor3 = Color3.new(1,1,1)
  34. bdycolors.HeadColor3 = Color3.new(1,1,1)
  35. bdycolors.LeftLegColor3 = Color3.new(0,0,0)
  36. bdycolors.RightLegColor3 = Color3.new(0,0,0)
  37. -- Sounds
  38. local music = Instance.new("Sound",char)
  39. music.SoundId = "rbxassetid://873716340"
  40. music.Volume = 4
  41. music.Looped = true
  42. music:Play()
  43. -- Hats
  44. for i,v in pairs(char:GetChildren()) do
  45.     if v.ClassName == "Accessory" or v.ClassName == "Hat" then
  46.         v:Destroy()
  47.     end
  48. end
  49. local Classicred = Instance.new("Part",char.Head)
  50. Classicred.Name = "Robloxclassicred"
  51. local Classicredmesh = Instance.new("FileMesh",Classicred)
  52. Classicredmesh.MeshId = "http://www.roblox.com/asset/?id=46834172"
  53. Classicredmesh.TextureId = "http://www.roblox.com/asset/?id=47991609"
  54. Classicredmesh.Scale = Vector3.new(1.05, 1.05, 1.05)
  55. local Classicredweld = Instance.new("Weld",Classicred)
  56. Classicredweld.Part0 = Classicred
  57. Classicredweld.Part1 = char.Head
  58. Classicredweld.C0 = CFrame.new(0.00257301331, -0.508233547, 0.112071037, 0.998388648, 0, -0.0567459799, 0, 1, 0, 0.0567459799, 0, 0.998388648)
  59. Classicred.CanCollide = false
  60. local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  61. game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Remove()
  62. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  63. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  64. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  65. rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  66. local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  67. game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Remove()
  68. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  69. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  70. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  71. lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  72. local llegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  73. llegweld.Part0 = game.Players.LocalPlayer.Character.Torso
  74. llegweld.Part1 = game.Players.LocalPlayer.Character["Left Leg"]
  75. llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) * CFrame.new(0,-1,0)
  76. local rlegclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  77. game.Players.LocalPlayer.Character.Torso["Right Hip"]:Remove()
  78. local rlegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  79. rlegweld.Part0 = game.Players.LocalPlayer.Character.Torso
  80. rlegweld.Part1 = game.Players.LocalPlayer.Character["Right Leg"]
  81. rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) * CFrame.new(0,-1,0)
  82. local rootjointclone = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  83. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Remove()
  84. local humanoidrootpart = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  85. humanoidrootpart.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart
  86. humanoidrootpart.Part1 = game.Players.LocalPlayer.Character.Torso
  87. local heed = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  88. local headweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  89. headweld.Part0 = game.Players.LocalPlayer.Character.Torso
  90. headweld.Part1 = game.Players.LocalPlayer.Character.Head
  91. headweld.C0 = headweld.C0 * CFrame.new(0,1.5,0)
  92. wait()
  93. function swait(num)
  94.     if num == 0 or num == nil then
  95.         game:service("RunService").Stepped:wait(0)
  96.     else
  97.         for i = 0, num do
  98.             game:service("RunService").Stepped:wait(0)
  99.         end
  100.     end
  101. end
  102. function swait(num)
  103. if num==0 or num==nil then
  104. game:service'RunService'.Stepped:wait(0)
  105. else
  106. for i=0,num do
  107. game:service'RunService'.Stepped:wait(0)
  108. end
  109. end
  110. end
  111.  
  112. function chatfunc(text)
  113. local chat = coroutine.wrap(function()
  114. if char:FindFirstChild("TalkingBillBoard")~= nil then
  115. char:FindFirstChild("TalkingBillBoard"):destroy()
  116. end
  117. local naeeym2 = Instance.new("BillboardGui",char)
  118. naeeym2.Size = UDim2.new(0,100,0,40)
  119. naeeym2.StudsOffset = Vector3.new(0,3,0)
  120. naeeym2.Adornee = char.Head
  121. naeeym2.Name = "TalkingBillBoard"
  122. local tecks2 = Instance.new("TextLabel",naeeym2)
  123. tecks2.BackgroundTransparency = 1
  124. tecks2.BorderSizePixel = 0
  125. tecks2.Text = ""
  126. tecks2.Font = "Fantasy"
  127. tecks2.TextSize = 30
  128. tecks2.TextStrokeTransparency = 0
  129. tecks2.TextColor3 = Color3.new(.6,0,0)
  130. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  131. tecks2.Size = UDim2.new(1,0,0.5,0)
  132. local tecks3 = Instance.new("TextLabel",naeeym2)
  133. tecks3.BackgroundTransparency = 1
  134. tecks3.BorderSizePixel = 0
  135. tecks3.Text = ""
  136. tecks3.Font = "Fantasy"
  137. tecks3.TextSize = 30
  138. tecks3.TextStrokeTransparency = 0
  139. tecks3.TextColor3 = Color3.new(1,1,1)
  140. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  141. tecks3.Size = UDim2.new(1,0,0.5,0)
  142. for i = 1,string.len(text),1 do
  143. tecks2.Text = string.sub(text,1,i)
  144. tecks3.Text = string.sub(text,1,i)
  145. wait(0.01)
  146. end
  147. wait(2)
  148. for i = 1, 50 do
  149. swait()
  150. tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  151. tecks2.Rotation = tecks2.Rotation - .8
  152. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  153. tecks2.TextTransparency = tecks2.TextTransparency + .04
  154. tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  155. tecks3.Rotation = tecks2.Rotation + .8
  156. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  157. tecks3.TextTransparency = tecks2.TextTransparency + .04
  158. end
  159. naeeym2:Destroy()
  160. end)
  161. chat()
  162. end
  163. function onChatted(msg)
  164. chatfunc(msg)
  165. end
  166. local txtfag = Instance.new("BillboardGui", game.Players.LocalPlayer.Character.Head)
  167. txtfag.Adornee = suckadick
  168. txtfag.Name = "kys nigga"
  169. txtfag.Size = UDim2.new(2, 0, 1.2, 0)
  170. txtfag.StudsOffset = Vector3.new(-5, 3, 0)
  171. local textfag = Instance.new("TextLabel", txtfag)
  172. textfag.Size = UDim2.new(6, 0, 1, 0)
  173. textfag.FontSize = "Size8"
  174. textfag.TextScaled = true
  175. textfag.TextTransparency = 0
  176. textfag.BackgroundTransparency = 1
  177. textfag.TextTransparency = 0
  178. textfag.TextStrokeTransparency = 0
  179. textfag.Font = "SourceSans"
  180. textfag.TextStrokeColor3 = Color3.new(0, 1, 0)
  181. v = Instance.new("Part")
  182. v.Name = "ColorBrick"
  183. v.Parent = part
  184. v.FormFactor = "Symmetric"
  185. v.Anchored = true
  186. v.CanCollide = false
  187. v.BottomSurface = "Smooth"
  188. v.TopSurface = "Smooth"
  189. v.Size = Vector3.new(10, 5, 3)
  190. v.Transparency = 0.7
  191. v.BrickColor = game.Players.LocalPlayer.Character.Torso.BrickColor
  192. v.Transparency = 1
  193. textfag.TextColor3 = BrickColor.new("Institutional white").Color
  194. textfag.TextStrokeColor3 = BrickColor.new("Institutional white").Color
  195. v.Shape = "Block"
  196. textfag.Text = "Sad Guest"
  197. coroutine.resume(coroutine.create(function()
  198.     while textfag ~= nil do
  199.         swait()
  200.         textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3))  
  201.         textfag.Rotation = math.random(-3,3)
  202.     end
  203. end))
  204. human = humanoidrootpart
  205. neck = headweld
  206. lhand = lhandweld
  207. rhand = rhandweld
  208. rleg = rlegweld
  209. lleg = llegweld
  210. char.Head.face.Texture = "http://www.roblox.com/asset/?id=1430746354"
  211. transformation = false
  212. local kills2 = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui) -- This will make a ScreenGui, which shows how much kills ya got.
  213. local text = Instance.new("TextLabel",kills2)
  214. text.Text = "Kills: " .. kills -- Changes the text to "Kills: 0" since the value is 0.
  215. text.Position = UDim2.new(0.728, 0,0.793, 0) -- This position failed, don't know why.
  216. text.Size = UDim2.new(0.271, 0,0.207, 0)
  217. text.TextColor3 = textfag.TextColor3
  218. text.TextScaled = true
  219. text.BackgroundTransparency = 1
  220. local number = Instance.new("NumberValue",char) -- Creates a NumberValue, which is the Kills value.
  221. number.Name = "Kills"
  222. number.Value = kills -- Changes the value to 0.
  223. coroutine.wrap(function() -- Changes value.
  224.     while true do
  225.         wait(0.01)
  226.         number.Value = kills
  227.         text.Text = "Kills: " .. number.Value -- Allows text to change.
  228.     end
  229. end)()
  230. function Transform(key)
  231.     if key == "e" and not transformation then
  232.     transformation = true
  233.     cananimate = false
  234.      for i = 0,1 , 0.03 do
  235.     lhand.C0 = lhand.C0:lerp(CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i)
  236.     lleg.C0 = lleg.C0:lerp(CFrame.new(-0.5, -1.9999913, 0, 1, 0, 0, 0, 0.999995589, 0, 0, 0, 1),i)
  237.     rhand.C0 = rhand.C0:lerp(CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i)
  238.     rleg.C0 = rleg.C0:lerp(CFrame.new(0.5, -1.9999913, 0, 1, 0, 0, 0, 0.999995589, 0, 0, 0, 1),i)
  239.     neck.C0 = neck.C0:lerp(CFrame.new(0, 1.4999938, 0, 1, 0, 0, 0, 0.999995708, 0, 0, 0, 1),i)
  240.     human.C0 = human.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.999995708, 0, 0, 0, 1),i)
  241.     game:GetService("RunService").RenderStepped:wait()
  242.         end
  243.     wait(1)
  244.     char.Humanoid.WalkSpeed = 0
  245.     chatfunc("...")
  246.     wait(2)
  247.     chatfunc("ROBLOX must die.")
  248.     wait(2)
  249.    
  250.         local Part = Instance.new("Part", char)
  251.         Part.Anchored = true
  252.         Part.CanCollide = false
  253.         Part.Position = char.Torso.Position
  254.         Part.Size = Vector3.new(1,1,1)
  255.         Part.Material = "Neon"
  256.         local Mesh = Instance.new("SpecialMesh", Part)
  257.         Mesh.MeshType = "Sphere"
  258.    
  259.             for i = 1,10 do
  260.                 game:GetService("RunService").RenderStepped:wait()
  261.                 for i = 1,30 do
  262.                     game:GetService("RunService").RenderStepped:wait(0.00000001)
  263.                     Part.Size = Part.Size + Vector3.new(2, 2, 2)
  264.                     Part.Color = Part.Color:lerp(Color3.fromRGB(255, 255, 255), 0.1)
  265.                 end
  266.            
  267.                 for i = 1,30 do
  268.                     game:GetService("RunService").RenderStepped:wait(0.00000001)
  269.                     Part.Size = Part.Size - Vector3.new(2, 2, 2)
  270.                     Part.Color = Part.Color:lerp(Color3.fromRGB(0, 0, 0), 0.1)
  271.                 end
  272.             end
  273.         Mesh.MeshType = "Cylinder"
  274.         Part.Position = char.Torso.Position
  275.         Part.Orientation = Vector3.new(0,0,90)
  276.         music.SoundId = "http://www.roblox.com/asset/?id=873716340"
  277.         music:Play()
  278.         for i = 1,200 do
  279.                 game:GetService("RunService").RenderStepped:wait(0.00000001)
  280.                 Mesh.Scale = Mesh.Scale + Vector3.new(10, 0.1, 0.1)
  281.                 Part.Transparency = Part.Transparency + 0.005
  282.                 Part.Color = Part.Color:lerp(Color3.fromRGB(255, 255, 0), 0.1)
  283.         end
  284.         Part:Destroy()
  285.         textfag.Text = "Ultimate Guest v2"
  286.         cananimate = true
  287.         char.Humanoid.WalkSpeed = 16
  288.         chatfunc("Get READY!")
  289.         char.Head.face.Texture = "http://www.roblox.com/asset/?id=14020216"
  290.         function onTouched(brick)
  291.     local humn = brick.Parent:FindFirstChildOfClass("Humanoid")
  292.     if humn then
  293.         kills = kills + 1
  294.         for i,v in pairs(humn.Parent:GetChildren()) do
  295.             if v.ClassName == "Part" then
  296.                 v.Anchored = true
  297.                 v.Transparency = 0.5
  298.                 v.Color = BrickColor.new("Really black").Color
  299.                 v.CanCollide = false
  300.                 humn:Destroy()
  301.             end
  302.         end
  303.     end
  304. end
  305. char.Torso.Touched:connect(onTouched)
  306.      end
  307. end
  308.  
  309. game.Players.LocalPlayer:GetMouse().KeyDown:connect(Transform)
  310. while true do
  311.     wait(0.01)
  312.     for i,v in pairs(char:GetChildren()) do
  313.     if v.ClassName == "Accessory" or v.ClassName == "Hat" then
  314.     v:Destroy()
  315.     end
  316.     end
  317.     if cananimate and not transformation then
  318.         --Walking animation
  319.         if game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate then
  320.             for i = 0.1,0.3 , 0.008 do
  321.                 if cananimate and not transformation and game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate and not transformation then
  322.                     human.C0 = human.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  323.                     neck.C0 = neck.C0:lerp(CFrame.new(0, 1.44722462, -0.175569534, 1, 0, 0, 0, 0.957668662, 0.28787294, 0, -0.28787291, 0.957668662),i)
  324.                     lhand.C0 = lhand.C0:lerp(CFrame.new(-1.5, 0.168842316, -0.374614239, 1, 0, 0, 0, 0.662306964, -0.74923259, 0, 0.74923259, 0.662307084),i)
  325.                     rhand.C0 = rhand.C0:lerp(CFrame.new(1.5, 0.12597847, 0.331827164, 1, 0, 0, 0, 0.748035073, 0.663659215, 0, -0.663659275, 0.748035014),i)
  326.                     rleg.C0 = rleg.C0:lerp(CFrame.new(0.5, -1.67391682, -0.738807678, 0.99999994, 0, 0, 0, 0.673916757, -0.738807261, 0, 0.738807321, 0.673916817),i)
  327.                     lleg.C0 = lleg.C0:lerp(CFrame.new(-0.5, -1.67705727, 0.735931396, 1, 0, 0, 0, 0.677056909, 0.735930681, 0, -0.735930741, 0.677056968),i)
  328.                     game:GetService("RunService").Stepped:wait()
  329.                 end
  330.             end
  331.             for i = 0.1,0.3 , 0.008 do
  332.                 if cananimate and not transformation and game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate and not transformation then
  333.                     human.C0 = human.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  334.                     neck.C0 = neck.C0:lerp(CFrame.new(0, 1.44722462, -0.175569534, 1, 0, 0, 0, 0.957668662, 0.28787294, 0, -0.28787291, 0.957668662),i)
  335.                     rleg.C0 = rleg.C0:lerp(CFrame.new(0.5, -1.69855976, 0.715551376, 1, 0, 0, 0, 0.698559642, 0.715551734, 0, -0.715551794, 0.698559701),i)
  336.                     lleg.C0 = lleg.C0:lerp(CFrame.new(-0.5, -1.80723953, -0.590223312, 1, 0, 0, 0, 0.807239354, -0.590224087, 0, 0.590224147, 0.807239413),i)
  337.                     lhand.C0 = lhand.C0:lerp(CFrame.new(-1.5, 0.216003418, 0.411518574, 1, 0, 0, 0, 0.567983389, 0.823040009, 0, -0.823040009, 0.567983389),i)
  338.                     rhand.C0 = rhand.C0:lerp(CFrame.new(1.5, 0.215018272, -0.41083622, 1, 0, 0, 0, 0.569954693, -0.821676135, 0, 0.821676135, 0.569954753),i)
  339.                     game:GetService("RunService").Stepped:wait()
  340.                 end
  341.             end
  342.             -- Idle animation
  343.         elseif game.Players.LocalPlayer.Character.Torso.Velocity.x > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x < 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < 0.5 then
  344.             for i = 0,1 , 0.03 do
  345.                 if cananimate and not transformation and game.Players.LocalPlayer.Character.Torso.Velocity.x > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x < 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < 0.5 and cananimate and not transformation then
  346.                     neck.C0 = neck.C0:lerp(CFrame.new(0, 1.44722462, -0.175569534, 1, 0, 0, 0, 0.957668662, 0.28787294, 0, -0.28787291, 0.957668662),i)
  347.     lhand.C0 = lhand.C0:lerp(CFrame.new(-0.999992371, 0.403417587, -0.400690079, 0.978886008, -0.198669523, -0.0480909608, -0.0489091128, 0.000789985002, -0.99880302, 0.198469713, 0.98006618, -0.00894344598),i)
  348.     rhand.C0 = rhand.C0:lerp(CFrame.new(0.999992371, 0.401778936, -0.300704002, 0.995004237, 0.0998337567, 2.21675634e-07, -8.0173304e-05, 0.000801276532, -0.999999762, -0.0998337343, 0.995003879, 0.000805277436),i)
  349.     lleg.C0 = lleg.C0:lerp(CFrame.new(-0.500003815, -0.302405119, -1.00209045, 0.998795688, 1.07394217e-05, 0.0490646139, 0.0144870952, 0.955350697, -0.295119137, -0.0468770824, 0.295474499, 0.954199851),i)
  350.     rleg.C0 = rleg.C0:lerp(CFrame.new(0.499988556, -0.299546719, -1.00121117, 0.999991715, 1.10380352e-05, -3.05008143e-06, -1.13286078e-05, 0.955351293, -0.295472056, -2.51282472e-07, 0.295474589, 0.955343246),i)
  351.         human.C0 = human.C0:lerp(CFrame.new(0, 1.98613644, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1):inverse(),i)
  352.                     game:GetService("RunService").RenderStepped:wait()
  353.                 end
  354.             end
  355.         end
  356.     end
  357.     wait()
  358.      if cananimate and transformation then
  359.         --Walking animation
  360.         if game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate and transformation then
  361.             for i = 0.1,0.3 , 0.008 do
  362.                 if cananimate and transformation and game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate and transformation then
  363.                     neck.C0 = neck.C0:lerp(CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  364.                     human.C0 = human.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  365.                     lhand.C0 = lhand.C0:lerp(CFrame.new(-1.5, 0.168842316, -0.374614239, 1, 0, 0, 0, 0.662306964, -0.74923259, 0, 0.74923259, 0.662307084),i)
  366.                     rhand.C0 = rhand.C0:lerp(CFrame.new(1.5, 0.12597847, 0.331827164, 1, 0, 0, 0, 0.748035073, 0.663659215, 0, -0.663659275, 0.748035014),i)
  367.                     rleg.C0 = rleg.C0:lerp(CFrame.new(0.5, -1.67391682, -0.738807678, 0.99999994, 0, 0, 0, 0.673916757, -0.738807261, 0, 0.738807321, 0.673916817),i)
  368.                     lleg.C0 = lleg.C0:lerp(CFrame.new(-0.5, -1.67705727, 0.735931396, 1, 0, 0, 0, 0.677056909, 0.735930681, 0, -0.735930741, 0.677056968),i)
  369.                     game:GetService("RunService").Stepped:wait()
  370.                 end
  371.             end
  372.             for i = 0.1,0.3 , 0.008 do
  373.                 if cananimate and transformation and game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate and transformation then
  374.                     neck.C0 = neck.C0:lerp(CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  375.                     human.C0 = human.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  376.                     rleg.C0 = rleg.C0:lerp(CFrame.new(0.5, -1.69855976, 0.715551376, 1, 0, 0, 0, 0.698559642, 0.715551734, 0, -0.715551794, 0.698559701),i)
  377.                     lleg.C0 = lleg.C0:lerp(CFrame.new(-0.5, -1.80723953, -0.590223312, 1, 0, 0, 0, 0.807239354, -0.590224087, 0, 0.590224147, 0.807239413),i)
  378.                     lhand.C0 = lhand.C0:lerp(CFrame.new(-1.5, 0.216003418, 0.411518574, 1, 0, 0, 0, 0.567983389, 0.823040009, 0, -0.823040009, 0.567983389),i)
  379.                     rhand.C0 = rhand.C0:lerp(CFrame.new(1.5, 0.215018272, -0.41083622, 1, 0, 0, 0, 0.569954693, -0.821676135, 0, 0.821676135, 0.569954753),i)
  380.                     game:GetService("RunService").Stepped:wait()
  381.                 end
  382.             end
  383.             -- Idle animation
  384.         elseif game.Players.LocalPlayer.Character.Torso.Velocity.x > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x < 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < 0.5 then
  385.             for i = 0,1 , 0.03 do
  386.                 if cananimate and transformation and game.Players.LocalPlayer.Character.Torso.Velocity.x > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x < 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < 0.5 and cananimate and transformation then
  387.                     headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.49999976, 0, 0.939692736, 2.65673535e-22, -0.342019886, -1.42512683e-22, 1, 3.85227261e-22, 0.342019916, -3.13253081e-22, 0.939692736),i)
  388.     humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.866025388, -3.86706633e-22, -0.500000238, 2.65673535e-22, 1, -3.13253081e-22, 0.500000238, 1.38448295e-22, 0.866025388):inverse(),i)
  389.     rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -2, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i)
  390.     llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.790345192, -1.96068549, 0, 0.984807849, 0.173647985, -5.23747954e-22, -0.173647985, 0.984807849, 3.13253081e-22, 5.70186845e-22, -2.1754633e-22, 1),i)
  391.     lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.65210819, 0.0268206596, 0, 0.984807849, 0.173647985, -5.23747954e-22, -0.173647985, 0.984807849, 3.13253081e-22, 5.70186845e-22, -2.1754633e-22, 1),i)
  392.     rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.59805298, 0.00370526314, -0.166603565, 0.984807849, -0.173648134, -3.13053391e-07, 0.171009988, 0.969846368, -0.173648238, 0.0301539954, 0.171010062, 0.984807789),i)
  393.                     game:GetService("RunService").RenderStepped:wait()
  394.                 end
  395.             end
  396.         end
  397.     end
  398.     wait()
  399. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement