Advertisement
GojiGaming1337

Untitled

May 6th, 2018
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.92 KB | None | 0 0
  1. --[[
  2. Created by Theamazingnater
  3. Finally! I learned how to switch between animations depending on what bool is activated!
  4. Hope you enjoy the new Ultimate Guest script.
  5. --]]
  6. char = game.Players.LocalPlayer.Character
  7. cananimate = true
  8. wait(1)
  9. for i,v in pairs(char:GetChildren()) do
  10. if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "CharacterMesh" then
  11. v:Destroy()
  12. end
  13. end
  14. print([[
  15. Thanks for using my Ultimate Guest script.
  16. This is a newer verison, and I have been waiting to make this.
  17. AND I FINALLY LEARNED HOW TO SWITCH BETWEEN ANIMATIONS!
  18. :D
  19. - Theamazingnater
  20. User is: ]] .. char.Name)
  21. kills = 0
  22. local Shirt = Instance.new("Shirt",char)
  23. Shirt.ShirtTemplate = "rbxassetid://13997646"
  24. local Pants = Instance.new("Pants",char)
  25. Pants.PantsTemplate = "rbxassetid://7307783"
  26. -- Bodycolors!
  27. local bdycolors = char:findFirstChild("Body Colors")
  28. bdycolors.TorsoColor3 = Color3.new(1,1,1)
  29. bdycolors.LeftArmColor3 = Color3.new(1,1,1)
  30. bdycolors.RightArmColor3 = Color3.new(1,1,1)
  31. bdycolors.HeadColor3 = Color3.new(1,1,1)
  32. bdycolors.LeftLegColor3 = Color3.new(1,1,1)
  33. bdycolors.RightLegColor3 = Color3.new(1,1,1)
  34. -- Sounds
  35. local music = Instance.new("Sound",char)
  36. music.SoundId = "rbxassetid://932714839"
  37. music.Volume = 4
  38. music.Looped = true
  39. music:Play()
  40. -- Hats
  41. for i,v in pairs(char:GetChildren()) do
  42. if v.ClassName == "Accessory" or v.ClassName == "Hat" then
  43. v:Destroy()
  44. end
  45. end
  46. local Classicred = Instance.new("Part",char.Head)
  47. Classicred.Name = "Robloxclassicred"
  48. local Classicredmesh = Instance.new("FileMesh",Classicred)
  49. Classicredmesh.MeshId = "http://www.roblox.com/asset/?id=74878559"
  50. Classicredmesh.TextureId = "http://www.roblox.com/asset/?id=75976712"
  51. Classicredmesh.Scale = Vector3.new(1.05, 1.05, 1.05)
  52. local Classicredweld = Instance.new("Weld",Classicred)
  53. Classicredweld.Part0 = Classicred
  54. Classicredweld.Part1 = char.Head
  55. Classicredweld.C0 = CFrame.new(0.00257301331, -0.508233547, 0.112071037, 0.998388648, 0, -0.0567459799, 0, 1, 0, 0.0567459799, 0, 0.998388648)
  56. Classicred.CanCollide = false
  57. local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  58. game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Remove()
  59. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  60. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  61. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  62. rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  63. local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  64. game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Remove()
  65. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  66. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  67. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  68. lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  69. local llegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  70. llegweld.Part0 = game.Players.LocalPlayer.Character.Torso
  71. llegweld.Part1 = game.Players.LocalPlayer.Character["Left Leg"]
  72. llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) * CFrame.new(0,-1,0)
  73. local rlegclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  74. game.Players.LocalPlayer.Character.Torso["Right Hip"]:Remove()
  75. local rlegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  76. rlegweld.Part0 = game.Players.LocalPlayer.Character.Torso
  77. rlegweld.Part1 = game.Players.LocalPlayer.Character["Right Leg"]
  78. rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) * CFrame.new(0,-1,0)
  79. local rootjointclone = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  80. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Remove()
  81. local humanoidrootpart = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  82. humanoidrootpart.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart
  83. humanoidrootpart.Part1 = game.Players.LocalPlayer.Character.Torso
  84. local heed = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  85. local headweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  86. headweld.Part0 = game.Players.LocalPlayer.Character.Torso
  87. headweld.Part1 = game.Players.LocalPlayer.Character.Head
  88. headweld.C0 = headweld.C0 * CFrame.new(0,1.5,0)
  89. wait()
  90. function swait(num)
  91. if num == 0 or num == nil then
  92. game:service("RunService").Stepped:wait(0)
  93. else
  94. for i = 0, num do
  95. game:service("RunService").Stepped:wait(0)
  96. end
  97. end
  98. end
  99. function swait(num)
  100. if num==0 or num==nil then
  101. game:service'RunService'.Stepped:wait(0)
  102. else
  103. for i=0,num do
  104. game:service'RunService'.Stepped:wait(0)
  105. end
  106. end
  107. end
  108.  
  109. function chatfunc(text)
  110. local chat = coroutine.wrap(function()
  111. if char:FindFirstChild("TalkingBillBoard")~= nil then
  112. char:FindFirstChild("TalkingBillBoard"):destroy()
  113. end
  114. local naeeym2 = Instance.new("BillboardGui",char)
  115. naeeym2.Size = UDim2.new(0,100,0,40)
  116. naeeym2.StudsOffset = Vector3.new(0,3,0)
  117. naeeym2.Adornee = char.Head
  118. naeeym2.Name = "TalkingBillBoard"
  119. local tecks2 = Instance.new("TextLabel",naeeym2)
  120. tecks2.BackgroundTransparency = 1
  121. tecks2.BorderSizePixel = 0
  122. tecks2.Text = ""
  123. tecks2.Font = "Fantasy"
  124. tecks2.TextSize = 30
  125. tecks2.TextStrokeTransparency = 0
  126. tecks2.TextColor3 = Color3.new(.6,0,0)
  127. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  128. tecks2.Size = UDim2.new(1,0,0.5,0)
  129. local tecks3 = Instance.new("TextLabel",naeeym2)
  130. tecks3.BackgroundTransparency = 1
  131. tecks3.BorderSizePixel = 0
  132. tecks3.Text = ""
  133. tecks3.Font = "Fantasy"
  134. tecks3.TextSize = 30
  135. tecks3.TextStrokeTransparency = 0
  136. tecks3.TextColor3 = Color3.new(1,1,1)
  137. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  138. tecks3.Size = UDim2.new(1,0,0.5,0)
  139. for i = 1,string.len(text),1 do
  140. tecks2.Text = string.sub(text,1,i)
  141. tecks3.Text = string.sub(text,1,i)
  142. wait(0.01)
  143. end
  144. wait(2)
  145. for i = 1, 50 do
  146. swait()
  147. tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  148. tecks2.Rotation = tecks2.Rotation - .8
  149. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  150. tecks2.TextTransparency = tecks2.TextTransparency + .04
  151. tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  152. tecks3.Rotation = tecks2.Rotation + .8
  153. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  154. tecks3.TextTransparency = tecks2.TextTransparency + .04
  155. end
  156. naeeym2:Destroy()
  157. end)
  158. chat()
  159. end
  160. function onChatted(msg)
  161. chatfunc(msg)
  162. end
  163. local txtfag = Instance.new("BillboardGui", game.Players.LocalPlayer.Character.Head)
  164. txtfag.Adornee = suckadick
  165. txtfag.Name = "kys nigga"
  166. txtfag.Size = UDim2.new(2, 0, 1.2, 0)
  167. txtfag.StudsOffset = Vector3.new(-5, 3, 0)
  168. local textfag = Instance.new("TextLabel", txtfag)
  169. textfag.Size = UDim2.new(6, 0, 1, 0)
  170. textfag.FontSize = "Size8"
  171. textfag.TextScaled = true
  172. textfag.TextTransparency = 0
  173. textfag.BackgroundTransparency = 1
  174. textfag.TextTransparency = 0
  175. textfag.TextStrokeTransparency = 0
  176. textfag.Font = "SourceSans"
  177. textfag.TextStrokeColor3 = Color3.new(0, 1, 0)
  178. v = Instance.new("Part")
  179. v.Name = "ColorBrick"
  180. v.Parent = part
  181. v.FormFactor = "Symmetric"
  182. v.Anchored = true
  183. v.CanCollide = false
  184. v.BottomSurface = "Smooth"
  185. v.TopSurface = "Smooth"
  186. v.Size = Vector3.new(10, 5, 3)
  187. v.Transparency = 0.7
  188. v.BrickColor = game.Players.LocalPlayer.Character.Torso.BrickColor
  189. v.Transparency = 1
  190. textfag.TextColor3 = BrickColor.new("Really red").Color
  191. textfag.TextStrokeColor3 = BrickColor.new("Really red").Color
  192. v.Shape = "Block"
  193. textfag.Text = "The Last Assassin"
  194. coroutine.resume(coroutine.create(function()
  195. while textfag ~= nil do
  196. swait()
  197. textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3))
  198. textfag.Rotation = math.random(-3,3)
  199. end
  200. end))
  201. human = humanoidrootpart
  202. neck = headweld
  203. lhand = lhandweld
  204. rhand = rhandweld
  205. rleg = rlegweld
  206. lleg = llegweld
  207. char.Head.face.Texture = "http://www.roblox.com/asset/?id=144440688"
  208. transformation = false
  209. local kills2 = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui) -- This will make a ScreenGui, which shows how much kills ya got.
  210. local text = Instance.new("TextLabel",kills2)
  211. text.Text = "Kills: " .. kills -- Changes the text to "Kills: 0" since the value is 0.
  212. text.Position = UDim2.new(0.728, 0,0.793, 0) -- This position failed, don't know why.
  213. text.Size = UDim2.new(0.271, 0,0.207, 0)
  214. text.TextColor3 = textfag.TextColor3
  215. text.TextScaled = true
  216. text.BackgroundTransparency = 1
  217. local number = Instance.new("NumberValue",char) -- Creates a NumberValue, which is the Kills value.
  218. number.Name = "Kills"
  219. number.Value = kills -- Changes the value to 0.
  220. coroutine.wrap(function() -- Changes value.
  221. while true do
  222. wait(0.01)
  223. number.Value = kills
  224. text.Text = "Kills: " .. number.Value -- Allows text to change.
  225. end
  226. end)()
  227. function Transform(key)
  228. if key == "e" and not transformation then
  229. transformation = true
  230. cananimate = false
  231. for i = 0,1 , 0.03 do
  232. 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)
  233. lleg.C0 = lleg.C0:lerp(CFrame.new(-0.5, -1.9999913, 0, 1, 0, 0, 0, 0.999995589, 0, 0, 0, 1),i)
  234. 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)
  235. rleg.C0 = rleg.C0:lerp(CFrame.new(0.5, -1.9999913, 0, 1, 0, 0, 0, 0.999995589, 0, 0, 0, 1),i)
  236. neck.C0 = neck.C0:lerp(CFrame.new(0, 1.4999938, 0, 1, 0, 0, 0, 0.999995708, 0, 0, 0, 1),i)
  237. human.C0 = human.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.999995708, 0, 0, 0, 1),i)
  238. game:GetService("RunService").RenderStepped:wait()
  239. end
  240. wait(1)
  241. char.Humanoid.WalkSpeed = 0
  242. chatfunc("You know..")
  243. wait(2)
  244. chatfunc("I dont show this to much people..")
  245. wait(2)
  246. chatfunc("But you.. You deserve this..")
  247. wait(2)
  248. chatfunc("..")
  249. wait(1.5)
  250. chatfunc("YOU DESERVE ALL OF THIS!")
  251. wait(2)
  252.  
  253. local Part = Instance.new("Part", char)
  254. Part.Anchored = true
  255. Part.CanCollide = false
  256. Part.Position = char.Torso.Position
  257. Part.Size = Vector3.new(1,1,1)
  258. Part.Material = "Neon"
  259. local Mesh = Instance.new("SpecialMesh", Part)
  260. Mesh.MeshType = "Sphere"
  261.  
  262. for i = 1,10 do
  263. game:GetService("RunService").RenderStepped:wait()
  264. for i = 1,30 do
  265. game:GetService("RunService").RenderStepped:wait(0.00000001)
  266. Part.Size = Part.Size + Vector3.new(2, 2, 2)
  267. Part.Color = Part.Color:lerp(Color3.fromRGB(5, 0, 0), 0.1)
  268. end
  269.  
  270. for i = 1,30 do
  271. game:GetService("RunService").RenderStepped:wait(0.00000001)
  272. Part.Size = Part.Size - Vector3.new(2, 2, 2)
  273. Part.Color = Part.Color:lerp(Color3.fromRGB(0, 0, 0), 0.1)
  274. end
  275. end
  276. Mesh.MeshType = "Cylinder"
  277. Part.Position = char.Torso.Position
  278. Part.Orientation = Vector3.new(0,0,90)
  279. music.SoundId = "http://www.roblox.com/asset/?id=570556587"
  280. music:Play()
  281. for i = 1,200 do
  282. game:GetService("RunService").RenderStepped:wait(0.00000001)
  283. Mesh.Scale = Mesh.Scale + Vector3.new(10, 0.1, 0.1)
  284. Part.Transparency = Part.Transparency + 0.005
  285. Part.Color = Part.Color:lerp(Color3.fromRGB(255, 255, 0), 0.1)
  286. end
  287. Part:Destroy()
  288. textfag.Text = "The Last Assassin's true power"
  289. cananimate = true
  290. char.Humanoid.WalkSpeed = 16
  291. chatfunc("Get READY!")
  292. wait(2)
  293. chatfunc("BECAUSE IM GONNA TEAR YOU APART!")
  294. char.Head.face.Texture = "http://www.roblox.com/asset/?id=81795911"
  295. function onTouched(brick)
  296. local humn = brick.Parent:FindFirstChildOfClass("Humanoid")
  297. if humn then
  298. kills = kills + 1
  299. for i,v in pairs(humn.Parent:GetChildren()) do
  300. if v.ClassName == "Part" then
  301. v.Anchored = true
  302. v.Transparency = 0.5
  303. v.Color = BrickColor.new("Really black").Color
  304. v.CanCollide = false
  305. humn:Destroy()
  306. end
  307. end
  308. end
  309. end
  310. char.Torso.Touched:connect(onTouched)
  311. end
  312. end
  313.  
  314. game.Players.LocalPlayer:GetMouse().KeyDown:connect(Transform)
  315. while true do
  316. wait(0.01)
  317. for i,v in pairs(char:GetChildren()) do
  318. if v.ClassName == "Accessory" or v.ClassName == "Hat" then
  319. v:Destroy()
  320. end
  321. end
  322. if cananimate and not transformation then
  323. --Walking animation
  324. 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
  325. for i = 0.1,0.3 , 0.008 do
  326. 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
  327. human.C0 = human.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  328. 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)
  329. 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)
  330. 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)
  331. 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)
  332. 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)
  333. game:GetService("RunService").Stepped:wait()
  334. end
  335. end
  336. for i = 0.1,0.3 , 0.008 do
  337. 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
  338. human.C0 = human.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  339. 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)
  340. 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)
  341. 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)
  342. 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)
  343. 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)
  344. game:GetService("RunService").Stepped:wait()
  345. end
  346. end
  347. -- Idle animation
  348. 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
  349. for i = 0,1 , 0.03 do
  350. 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
  351. 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)
  352. 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)
  353. 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)
  354. 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)
  355. 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)
  356. human.C0 = human.C0:lerp(CFrame.new(0, 1.98613644, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1):inverse(),i)
  357. game:GetService("RunService").RenderStepped:wait()
  358. end
  359. end
  360. end
  361. end
  362. wait()
  363. if cananimate and transformation then
  364. --Walking animation
  365. 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
  366. for i = 0.1,0.3 , 0.008 do
  367. 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
  368. neck.C0 = neck.C0:lerp(CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  369. human.C0 = human.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  370. 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)
  371. 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)
  372. 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)
  373. 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)
  374. game:GetService("RunService").Stepped:wait()
  375. end
  376. end
  377. for i = 0.1,0.3 , 0.008 do
  378. 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
  379. neck.C0 = neck.C0:lerp(CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  380. human.C0 = human.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  381. 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)
  382. 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)
  383. 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)
  384. 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)
  385. game:GetService("RunService").Stepped:wait()
  386. end
  387. end
  388. -- Idle animation
  389. 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
  390. for i = 0,1 , 0.03 do
  391. 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
  392. 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)
  393. 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)
  394. 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)
  395. 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)
  396. 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)
  397. 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)
  398. game:GetService("RunService").RenderStepped:wait()
  399. end
  400. end
  401. end
  402. end
  403. wait()
  404. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement