carlosname

Untitled

May 3rd, 2020
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --By Rufus14
  2. --wait(1.5)
  3. --owner = game.Players:FindFirstChild(script.Parent.Name)
  4. NLS([[owner = game:GetService("Players"):findFirstChild(script.Parent.Name)
  5. remote = owner.Character:WaitForChild("moonmanremote")
  6. mouse = owner:GetMouse()
  7. function keys(key)
  8.     key = key:lower()
  9.     if key == "q" then
  10.         remote:FireServer("mothafuckah")
  11.     elseif key == "e" then
  12.         remote:FireServer("nigor")
  13.     elseif key == "r" then
  14.         remote:FireServer("grab")
  15.     elseif key == "t" then
  16.         remote:FireServer("punchgrab")
  17.     end
  18. end
  19. function sprinton(key)
  20.     key = key:lower()
  21.     if key:byte() == 48 and owner.Character:findFirstChildOfClass("Humanoid").WalkSpeed > 0 then
  22.         owner.Character:findFirstChildOfClass("Humanoid").WalkSpeed = 30
  23.     end
  24. end
  25. function sprintoff(key)
  26.     key = key:lower()
  27.     if key:byte() == 48 and owner.Character:findFirstChildOfClass("Humanoid").WalkSpeed > 0 then
  28.         owner.Character:findFirstChildOfClass("Humanoid").WalkSpeed = 16
  29.     end
  30. end
  31. mouse.KeyUp:connect(sprintoff)
  32. mouse.KeyDown:connect(sprinton)
  33. mouse.KeyDown:connect(keys)
  34. local part = Instance.new("Part", owner.Character.Head)
  35. part.Size = Vector3.new(0.1,0.1,0.1)
  36. part.Transparency = 1
  37. part.CanCollide = false
  38. part.Name = "camera"
  39. part:BreakJoints()
  40. local weld = Instance.new("Weld", part)
  41. weld.Part0 = owner.Character.Head
  42. weld.Part1 = part
  43. weld.C0 = CFrame.new(0,0,-1)
  44. cangoup = true
  45. rolling = false
  46. local function rotatecamera()
  47.     while true do
  48.         if (workspace.CurrentCamera.CFrame.p - part.Position).magnitude > 1.7 then
  49.             local cfp = workspace.CurrentCamera.CFrame.p
  50.             game:GetService("RunService").RenderStepped:wait()
  51.             workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame * CFrame.Angles(0,0,(workspace.CurrentCamera.CFrame.p-cfp).magnitude/50)
  52.         else
  53.             game:GetService("RunService").RenderStepped:wait()
  54.         end
  55.     end
  56. end
  57. spawn(rotatecamera)
  58. while game:GetService("RunService").RenderStepped:wait() do
  59.     if (workspace.CurrentCamera.CFrame.p - part.Position).magnitude <= 1.7 then
  60.         game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position,Vector3.new(mouse.Hit.p.x,game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position.y,mouse.Hit.p.z))
  61.         workspace.CurrentCamera.FieldOfView = 80
  62.         if owner.Character.Head:findFirstChild("Head") then
  63.             for i,v in pairs(owner.Character.Head:findFirstChild("Head"):GetChildren()) do
  64.                 if v.ClassName == "Part" then
  65.                     v.Transparency = 1
  66.                 end
  67.             end
  68.         end
  69.         for i,v in pairs(owner.Character:GetChildren()) do
  70.             if v.ClassName == "Part" or v.ClassName == "MeshPart" and v.Name ~= "Head" then
  71.                 v.LocalTransparencyModifier = 0
  72.             end
  73.             if v.ClassName == "Accessory" then
  74.                 v.Handle.Transparency = 1
  75.             end
  76.         end
  77.         if owner.Character.Head:findFirstChildOfClass("Decal") then
  78.             owner.Character.Head:findFirstChildOfClass("Decal").Transparency = 1
  79.         end
  80.         owner.Character.Head.Transparency = 1
  81.         workspace.CurrentCamera.CameraSubject = part
  82.                 end
  83.             end
  84.         end
  85. -- Farewell Infortality.
  86. -- Version: 2.82
  87. -- Instances:
  88. local Text = Instance.new("BillboardGui")
  89. local Name = Instance.new("TextLabel")
  90. --Properties:
  91. Text.Name = "Text"
  92. Text.Parent = owner.Character.Head
  93. Text.Size = UDim2.new(2, 0, 2, 0)
  94. Text.StudsOffset = Vector3.new(0, 2, 0)
  95.  
  96. Name.Name = "Name"
  97. Name.Parent = Text
  98. Name.TextStrokeTransparency = 0
  99. Name.BackgroundTransparency = 1
  100. Name.Size = UDim2.new(1, 0, 1, 0)
  101. Name.Font = Enum.Font.Arial
  102. Name.Text = owner.Name
  103. Name.TextColor3 = Color3.new(1, 1, 1)
  104. Name.TextScaled = true
  105. Name.TextSize = 3
  106. Name.TextWrapped = true
  107. --GUI
  108. --Converted with ttyyuu12345's model to script plugin v4
  109. function sandbox(var,func)
  110.     local env = getfenv(func)
  111.     local newenv = setmetatable({},{
  112.         __index = function(self,k)
  113.             if k=="script" then
  114.                 return var
  115.             else
  116.                 return env[k]
  117.             end
  118.         end,
  119.     })
  120.     setfenv(func,newenv)
  121.     return func
  122. end
  123. cors = {}
  124. mas = Instance.new("Model",game:GetService("Lighting"))
  125. ScreenGui0 = Instance.new("ScreenGui")
  126. TextButton1 = Instance.new("TextButton")
  127. TextButton2 = Instance.new("TextButton")
  128. TextButton3 = Instance.new("TextButton")
  129. TextButton4 = Instance.new("TextButton")
  130. ScreenGui0.Name = "nice meme"
  131. ScreenGui0.Parent = mas
  132. ScreenGui0.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  133. TextButton1.Name = "Moonman"
  134. TextButton1.Parent = ScreenGui0
  135. TextButton1.Position = UDim2.new(0.799560726, 0, 0.252747834, 0)
  136. TextButton1.Rotation = -3
  137. TextButton1.Size = UDim2.new(0, 291, 0, 43)
  138. TextButton1.BackgroundColor = BrickColor.new("Institutional white")
  139. TextButton1.BackgroundColor3 = Color3.new(1, 1, 1)
  140. TextButton1.Style = Enum.ButtonStyle.RobloxRoundButton
  141. TextButton1.Font = Enum.Font.SourceSans
  142. TextButton1.FontSize = Enum.FontSize.Size14
  143. TextButton1.Text = "Moonman v2"
  144. TextButton1.TextColor = BrickColor.new("Really black")
  145. TextButton1.TextColor3 = Color3.new(0, 0, 0)
  146. TextButton1.TextScaled = true
  147. TextButton1.TextSize = 14
  148. TextButton1.TextWrap = true
  149. TextButton1.TextWrapped = true
  150. TextButton2.Name = "bywho"
  151. TextButton2.Parent = ScreenGui0
  152. TextButton2.Position = UDim2.new(0.799560726, 0, 0.307866335, 0)
  153. TextButton2.Rotation = -3
  154. TextButton2.Size = UDim2.new(0, 291, 0, 28)
  155. TextButton2.BackgroundColor = BrickColor.new("Institutional white")
  156. TextButton2.BackgroundColor3 = Color3.new(1, 1, 1)
  157. TextButton2.Style = Enum.ButtonStyle.RobloxRoundButton
  158. TextButton2.Font = Enum.Font.SourceSans
  159. TextButton2.FontSize = Enum.FontSize.Size14
  160. TextButton2.Text = "by Rufus14"
  161. TextButton2.TextColor = BrickColor.new("Really black")
  162. TextButton2.TextColor3 = Color3.new(0, 0, 0)
  163. TextButton2.TextScaled = true
  164. TextButton2.TextSize = 14
  165. TextButton2.TextWrap = true
  166. TextButton2.TextWrapped = true
  167. TextButton3.Name = "bywhooriginal"
  168. TextButton3.Parent = ScreenGui0
  169. TextButton3.Position = UDim2.new(0.765426338, 0, 0.344324648, 0)
  170. TextButton3.Rotation = -3
  171. TextButton3.Size = UDim2.new(0, 323, 0, 30)
  172. TextButton3.BackgroundColor = BrickColor.new("Institutional white")
  173. TextButton3.BackgroundColor3 = Color3.new(1, 1, 1)
  174. TextButton3.Style = Enum.ButtonStyle.RobloxRoundButton
  175. TextButton3.Font = Enum.Font.SourceSans
  176. TextButton3.FontSize = Enum.FontSize.Size14
  177. TextButton3.Text = "Original Moonman script by MemeNicoi"
  178. TextButton3.TextColor = BrickColor.new("Really black")
  179. TextButton3.TextColor3 = Color3.new(0, 0, 0)
  180. TextButton3.TextScaled = true
  181. TextButton3.TextSize = 14
  182. TextButton3.TextWrap = true
  183. TextButton3.TextWrapped = true
  184. TextButton4.Name = "suit"
  185. TextButton4.Parent = ScreenGui0
  186. TextButton4.Position = UDim2.new(0.799560726, 0, 0.397279054, 0)
  187. TextButton4.Rotation = -3
  188. TextButton4.Size = UDim2.new(0, 291, 0, 43)
  189. TextButton4.BackgroundColor = BrickColor.new("Institutional white")
  190. TextButton4.BackgroundColor3 = Color3.new(1, 1, 1)
  191. TextButton4.Style = Enum.ButtonStyle.RobloxRoundButton
  192. TextButton4.Font = Enum.Font.SourceSans
  193. TextButton4.FontSize = Enum.FontSize.Size14
  194. TextButton4.Text = "Suit: Off"
  195. TextButton4.TextColor = BrickColor.new("Really black")
  196. TextButton4.TextColor3 = Color3.new(0, 0, 0)
  197. TextButton4.TextScaled = true
  198. TextButton4.TextSize = 14
  199. TextButton4.TextWrap = true
  200. TextButton4.TextWrapped = true
  201. for i,v in pairs(mas:GetChildren()) do
  202.     v.Parent = owner:findFirstChildOfClass("PlayerGui")
  203.     pcall(function() v:MakeJoints() end)
  204. end
  205. mas:Destroy()
  206. for i,v in pairs(cors) do
  207.     spawn(function()
  208.         pcall(v)
  209.     end)
  210. end
  211. --end of GUI
  212. for i,v in pairs(owner.Character.Head:GetChildren()) do
  213.     if v.ClassName == "Sound" then
  214.         v:destroy()
  215.     end
  216. end
  217. for i,v in pairs(owner.Character:GetChildren()) do
  218.     if v.Name == "Sound" and v.ClassName == "Script" then
  219.         v.Disabled = true
  220.         if v:findFirstChildOfClass("LocalScript") then
  221.             v:findFirstChildOfClass("LocalScript").Disabled = true
  222.         end
  223.     end
  224. end
  225. function spawnshockwave(position)
  226.     local part = Instance.new("Part", workspace)
  227.     part.CanCollide = false
  228.     part.Anchored = true
  229.     part.Position = position
  230.     local mesh = Instance.new("SpecialMesh", part)
  231.     mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  232.     part.BrickColor = BrickColor.new("Institutional white")
  233.     local function resize()
  234.         for i = 1,20 do
  235.             mesh.Scale = mesh.Scale + Vector3.new(0.2,0.5,0.2)
  236.             part.Transparency = part.Transparency + 0.05
  237.             part.CFrame = part.CFrame * CFrame.new(0,0.2,0)
  238.             step:wait()
  239.         end
  240.         part:destroy()
  241.     end
  242.     spawn(resize)
  243. end
  244. local leftarm = Instance.new("Weld", owner.Character.Torso)
  245. leftarm.Part0 = owner.Character.Torso
  246. leftarm.Part1 = owner.Character["Left Arm"]
  247. leftarm.C0 = CFrame.new(-1.5,0.5,0)
  248. leftarm.C1 = CFrame.new(0,0.5,0)
  249. leftarm.Name = "LeftArmWeld"
  250. local rightarm = Instance.new("Weld", owner.Character.Torso)
  251. rightarm.Part0 = owner.Character.Torso
  252. rightarm.Part1 = owner.Character["Right Arm"]
  253. rightarm.C0 = CFrame.new(1.5,0.5,0)
  254. rightarm.C1 = CFrame.new(0,0.5,0)
  255. rightarm.Name = "RightArmWeld"
  256. local rightleg = Instance.new("Weld", owner.Character.Torso)
  257. rightleg.Part0 = owner.Character.Torso
  258. rightleg.Part1 = owner.Character["Right Leg"]
  259. rightleg.C0 = CFrame.new(0.5,-1,0)
  260. rightleg.C1 = CFrame.new(0,1,0)
  261. rightleg.Name = "RightLegWeld"
  262. local leftleg = Instance.new("Weld", owner.Character.Torso)
  263. leftleg.Part0 = owner.Character.Torso
  264. leftleg.Part1 = owner.Character["Left Leg"]
  265. leftleg.C0 = CFrame.new(-0.5,-1,0)
  266. leftleg.C1 = CFrame.new(0,1,0)
  267. leftleg.Name = "LeftLegWeld"
  268. local head = Instance.new("Weld", owner.Character.Torso)
  269. head.Part0 = owner.Character.Torso
  270. head.Part1 = owner.Character.Head
  271. head.C0 = CFrame.new(0,1,0)
  272. head.C1 = CFrame.new(0,-0.5,0)
  273. head.Name = "HeadWeld"
  274. local humanoidrootpart = Instance.new("Weld", owner.Character.HumanoidRootPart)
  275. humanoidrootpart.Part0 = owner.Character.HumanoidRootPart
  276. humanoidrootpart.Part1 = owner.Character.Torso
  277. humanoidrootpart.Name = "HumanoidRootPartWeld"
  278. rootpart = owner.Character.HumanoidRootPart
  279. ownerhumanoid = owner.Character:findFirstChildOfClass("Humanoid")
  280. step = game:GetService("RunService").Stepped
  281. anim = "idle"
  282. sine = 0
  283. cananimate = true
  284. suiton = false
  285. rightarmcolor = owner.Character["Right Arm"].BrickColor
  286. leftarmcolor = owner.Character["Left Arm"].BrickColor
  287. rightlegcolor = owner.Character["Right Leg"].BrickColor
  288. leftlegcolor = owner.Character["Left Leg"].BrickColor
  289. headcolor = owner.Character["Head"].BrickColor
  290. torsocolor = owner.Character["Torso"].BrickColor
  291. local remote = Instance.new("RemoteEvent", owner.Character)
  292. remote.Name = "moonmanremote"
  293. local mothabloxuh = Instance.new("Sound", owner.Character.Head)
  294. mothabloxuh.SoundId = "rbxassetid://4799902666"
  295. mothabloxuh.Volume = 4
  296. mothabloxuh.PlaybackSpeed = 16
  297. local nigor = Instance.new("Sound", owner.Character.Head)
  298. nigor.SoundId = "rbxassetid://4580053957"
  299. nigor.Volume = 4
  300. local explosion = Instance.new("Sound", owner.Character.Head)
  301. explosion.SoundId = "rbxassetid://142070127"
  302. explosion.Volume = 2
  303. local goresplatter = Instance.new("Sound", owner.Character.Head)
  304. goresplatter.SoundId = "rbxassetid://206082327"
  305. goresplatter.Volume = 2
  306. grabbed = false
  307. canuse = true
  308. function notification(text)
  309.     --Converted with ttyyuu12345's model to script plugin v4
  310.     local function sandbox(var,func)
  311.         local env = getfenv(func)
  312.         local newenv = setmetatable({},{
  313.             __index = function(self,k)
  314.                 if k=="script" then
  315.                     return var
  316.                 else
  317.                     return env[k]
  318.                 end
  319.             end,
  320.         })
  321.         setfenv(func,newenv)
  322.         return func
  323.     end
  324.     cors = {}
  325.     mas = Instance.new("Model",game:GetService("Lighting"))
  326.     local stateguii = Instance.new("ScreenGui")
  327.     local statetextt = Instance.new("TextLabel")
  328.     stateguii.Parent = mas
  329.     stateguii.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  330.     statetextt.Parent = stateguii
  331.     statetextt.Position = UDim2.new(0.222557679, 0, 0.84498024, 0)
  332.     statetextt.Size = UDim2.new(0, 757, 0, 60)
  333.     statetextt.BackgroundColor = BrickColor.new("Institutional white")
  334.     statetextt.BackgroundColor3 = Color3.new(1, 1, 1)
  335.     statetextt.BackgroundTransparency = 1
  336.     statetextt.Font = Enum.Font.Arial
  337.     statetextt.TextStrokeTransparency = 0
  338.     statetextt.FontSize = Enum.FontSize.Size14
  339.     statetextt.TextColor = BrickColor.new("Institutional white")
  340.     statetextt.TextColor3 = Color3.new(0, 0, 0)
  341.     statetextt.TextScaled = true
  342.     statetextt.TextSize = 14
  343.     statetextt.TextWrap = true
  344.     statetextt.TextWrapped = true
  345.     for i,v in pairs(mas:GetChildren()) do
  346.         v.Parent = owner:findFirstChildOfClass("PlayerGui")
  347.         pcall(function() v:MakeJoints() end)
  348.     end
  349.     mas:Destroy()
  350.     for i,v in pairs(cors) do
  351.         spawn(function()
  352.             pcall(v)
  353.         end)
  354.     end
  355.     statetextt.Text = text
  356.     local function disapear()
  357.         wait(2)
  358.         for i = 1,100 do
  359.             statetextt.TextStrokeTransparency = statetextt.TextStrokeTransparency + 0.01
  360.             statetextt.TextTransparency = statetextt.TextTransparency + 0.01
  361.             step:wait()
  362.         end
  363.         stateguii:destroy()
  364.     end
  365.     spawn(disapear)
  366. end
  367. grabsound = Instance.new("Sound", rightarm.Part1)
  368. grabsound.SoundId = "rbxassetid://169380525"
  369. grabsound.PlayOnRemove = true
  370. function action(plr, what, message)
  371.     if plr == owner and canuse then
  372.         cananimate = false
  373.         canuse = false
  374.         if what == "mothafuckah" then
  375.             mothabloxuh:Play()
  376.         elseif what == "nigor" then
  377.             nigor:Play()
  378.         elseif what == "grab" and not grabbed then
  379.             grabbed = false
  380.             for i = 0,0.8 , 0.02 do
  381.                 leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1,0) * CFrame.Angles(math.rad(-5),0,math.rad(-5)),i)
  382.                 rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1,0) * CFrame.Angles(math.rad(4),0,math.rad(5)),i)
  383.                 head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(0,math.rad(80),0),i)
  384.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(0,math.rad(-80),0),i)
  385.                 rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(90),0,math.rad(40)),i)
  386.                 leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(0,0,math.rad(-40)),i)
  387.                 step:wait()
  388.             end
  389.             for i = 0,0.8 , 0.02 do
  390.                 leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1,0) * CFrame.Angles(math.rad(-5),0,math.rad(-5)),i)
  391.                 rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1,0) * CFrame.Angles(math.rad(4),0,math.rad(5)),i)
  392.                 head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(0,math.rad(-80),0),i)
  393.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(0,math.rad(80),0),i)
  394.                 rightarm.C0 = rightarm.C0:lerp(CFrame.new(1,0.5,-0.5) * CFrame.Angles(math.rad(90),0,math.rad(-10)),i)
  395.                 leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0)*CFrame.Angles(0,0,math.rad(-10)),i)
  396.                 if i >= 0.4 and i <= 0.42 then
  397.                     for i,v in pairs(workspace:GetChildren()) do
  398.                         if v.ClassName == "Model" and v ~= owner.Character then
  399.                             local vhead = v:findFirstChild("Head")
  400.                             local vhumanoid = v:findFirstChildOfClass("Humanoid")
  401.                             if vhumanoid and vhead then
  402.                                 if (vhead.Position - rightarm.Part1.Position).magnitude <= 3 then
  403.                                     grabbed = true
  404.                                     local randompitch = math.random(1,6)
  405.                                     if randompitch == 1 then
  406.                                         grabsound.Pitch = 1.1
  407.                                     elseif randompitch == 2 then
  408.                                         grabsound.Pitch = 1
  409.                                     elseif randompitch == 3 then
  410.                                         grabsound.Pitch = 0.9
  411.                                     elseif randompitch == 4 then
  412.                                         grabsound.Pitch = 0.8
  413.                                     elseif randompitch == 5 then
  414.                                         grabsound.Pitch = 0.7
  415.                                     elseif randompitch == 6 then
  416.                                         grabsound.Pitch = 1.2
  417.                                     end
  418.                                     grabsound:Play()
  419.                                     vhumanoid.PlatformStand = true
  420.                                     --[[if v:findFirstChild("HumanoidRootPart") then
  421.                                         v.HumanoidRootPart:destroy()
  422.                                     end]]
  423.                                     local victimweld = Instance.new("Weld", owner.Character)
  424.                                     victimweld.Part0 = rightarm.Part1
  425.                                     victimweld.Part1 = vhead
  426.                                     victimweld.Name = "guyweld"
  427.                                     victimweld.C0 = CFrame.Angles(math.pi/2,0,math.pi) * CFrame.new(0,1,0.8)
  428.                                 end
  429.                             end
  430.                         end
  431.                     end
  432.                 end
  433.                 step:wait()
  434.             end
  435.         elseif what == "grab" and grabbed then
  436.             grabbed = false
  437.             for i = 0,1 , 0.08 do
  438.                 leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1,0) * CFrame.Angles(0,0,math.rad(-40)),i)
  439.                 rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1,0) * CFrame.Angles(math.rad(4),0,math.rad(5)),i)
  440.                 head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(0,math.rad(80),0),i)
  441.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(0,math.rad(-80),math.rad(40)),i)
  442.                 rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(90),0,math.rad(40)),i)
  443.                 leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(0,0,math.rad(-40)),i)
  444.                 step:wait()
  445.             end
  446.             for i = 0,0.8 , 0.1 do
  447.                 leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1,0) * CFrame.Angles(math.rad(-60),0,0),i)
  448.                 rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,0,-1) * CFrame.Angles(0,0,0),i)
  449.                 head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(0,0,0),i)
  450.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,-2,0) * CFrame.Angles(-math.rad(50),math.rad(40),0),i)
  451.                 rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(50),0,0),i)
  452.                 leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(0,0,math.rad(-40)),i)
  453.                 step:wait()
  454.             end
  455.             if owner.Character:findFirstChild("guyweld") then
  456.                 if owner.Character:findFirstChild("guyweld").Part1 ~= nil then
  457.                     if owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChildOfClass("Humanoid") and owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChild("Head") then
  458.                         explosion:Play()
  459.                         local function delayed()
  460.                             wait(0.1)
  461.                             goresplatter:Play()
  462.                         end
  463.                         spawn(delayed)
  464.                         if owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChildOfClass("Humanoid").MaxHealth == math.huge then
  465.                             owner.Character:findFirstChild("guyweld").Part1:destroy()
  466.                         else
  467.                             spawnshockwave(owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChild("Head").Position)
  468.                             owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChildOfClass("Humanoid").PlatformStand = false
  469.                             --[[local fakehum = Instance.new("Part", owner.Character:findFirstChild("guyweld").Part1.Parent)
  470.                             fakehum.Size = Vector3.new(2,2,1)
  471.                             fakehum.Name = "HumanoidRootPart"
  472.                             fakehum:BreakJoints()
  473.                             if owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChild("Torso") then
  474.                                 fakehum.CFrame = owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChild("Torso").CFrame
  475.                                 local humweld = Instance.new("Motor6D", fakehum)
  476.                                 humweld.Part0 = fakehum
  477.                                 humweld.Name = "RootJoint"
  478.                                 humweld.Part1 = owner.Character:findFirstChild("guyweld").Part1.Parent.Torso
  479.                             elseif owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChild("UpperTorso") then
  480.                                 fakehum.CFrame = owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChild("UpperTorso").CFrame
  481.                                 local humweld = Instance.new("Motor6D", fakehum)
  482.                                 humweld.Part0 = fakehum
  483.                                 humweld.Name = "RootJoint"
  484.                                 humweld.Part1 = owner.Character:findFirstChild("guyweld").Part1.Parent.UpperTorso
  485.                             end]]
  486.                             owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChildOfClass("Humanoid"):TakeDamage(math.random(30,70))
  487.                             owner.Character:findFirstChild("guyweld"):destroy()
  488.                         end
  489.                     end
  490.                 end
  491.             end
  492.         elseif what == "punchgrab" then
  493.             if not grabbed then
  494.                 notification("Grab someone before using this attack.")
  495.             else
  496.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,math.cos(sine/20)/20,0)*CFrame.Angles(0,math.rad(90),0),1)
  497.                 head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(5)+math.sin(sine/25)/25,-math.rad(90),0),1)
  498.                 leftarm.C0 = leftarm.C0:lerp(CFrame.new(0.5,1,-0.5) * CFrame.Angles(math.pi/2,math.rad(10),math.pi/2),1)
  499.                 rightarm.C0 = rightarm.C0:lerp(CFrame.new(1,0.5,-0.5) * CFrame.Angles(math.rad(90),math.sin(sine/25)/25,math.rad(90)),1)
  500.                 leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/20)/20,0) * CFrame.Angles(0,0,-math.rad(10)),1)
  501.                 rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1-math.cos(sine/20)/20,0) * CFrame.Angles(0,0,math.rad(10)),1)
  502.                 local randompitch = math.random(1,6)
  503.                 if randompitch == 1 then
  504.                     grabsound.Pitch = 1.1
  505.                 elseif randompitch == 2 then
  506.                     grabsound.Pitch = 1
  507.                 elseif randompitch == 3 then
  508.                     grabsound.Pitch = 0.9
  509.                 elseif randompitch == 4 then
  510.                     grabsound.Pitch = 0.8
  511.                 elseif randompitch == 5 then
  512.                     grabsound.Pitch = 0.7
  513.                 elseif randompitch == 6 then
  514.                     grabsound.Pitch = 1.2
  515.                 end
  516.                 grabsound:Play()
  517.                 if owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChildOfClass("Humanoid") then
  518.                     local huma = owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChildOfClass("Humanoid")
  519.                     if huma.Health <= 8 then
  520.                         owner.Character:findFirstChild("guyweld"):destroy()
  521.                         huma.Health = 0
  522.                         grabbed = false
  523.                     else
  524.                         huma:TakeDamage(8)
  525.                     end
  526.                 end
  527.                 wait()
  528.             end
  529.         end
  530.         cananimate = true
  531.         canuse = true
  532.     end
  533. end
  534. remote.OnServerEvent:connect(action)
  535. function pressedsuit()
  536.     if suiton then
  537.         suiton = false
  538.         TextButton4.Text = "Suit: Off"
  539.         owner.Character["Right Arm"].BrickColor = rightarmcolor
  540.         owner.Character["Left Arm"].BrickColor = leftarmcolor
  541.         owner.Character["Right Leg"].BrickColor = rightlegcolor
  542.         owner.Character["Left Leg"].BrickColor = leftlegcolor
  543.         owner.Character["Head"].BrickColor = headcolor
  544.         owner.Character["Torso"].BrickColor = torsocolor
  545.         for i,v in pairs(owner.Character.Head:GetChildren()) do
  546.             if v.ClassName == "SpecialMesh" then
  547.                 v:destroy()
  548.             end
  549.             if v.ClassName == "CharacterMesh" or v.ClassName == "Shirt" or v.ClassName == "Pants" then
  550.                 v.Parent = owner.Character
  551.             end
  552.         end
  553.         for i,v in pairs(owner.Character:GetChildren()) do
  554.             if v.ClassName == "Part" then
  555.                 if v.Name == "Head" then
  556.                     if v:findFirstChildOfClass("Decal") then
  557.                         v:findFirstChildOfClass("Decal").Transparency = 0
  558.                     end
  559.                 end
  560.             end
  561.             if v.ClassName == "Accessory" or v.ClassName == "Handle" then
  562.                 if v:findFirstChildOfClass("Part") then
  563.                     v:findFirstChildOfClass("Part").Transparency = 0
  564.                 end
  565.             end
  566.         end
  567.     else
  568.         TextButton4.Text = "Suit: On"
  569.         local eye = Instance.new("Part", head)
  570.         eye.Shape = "Ball"
  571.         eye.Material = "Neon"
  572.         eye.Size = Vector3.new(0.1,0.1,0.1)
  573.         eye:BreakJoints()
  574.         local eye1weld = Instance.new("Weld", head)
  575.         eye1weld.Part0 = owner.Character.Head
  576.         eye1weld.Part1 = eye
  577.         eye1weld.C0 = CFrame.new(0.2,0.15,-0.52)
  578.         --
  579.         local eye1 = Instance.new("Part", head)
  580.         eye1.Shape = "Ball"
  581.         eye1.Material = "Neon"
  582.         eye1.Size = Vector3.new(0.1,0.1,0.1)
  583.         eye1:BreakJoints()
  584.         local eye11weld = Instance.new("Weld", head)
  585.         eye11weld.Part0 = owner.Character.Head
  586.         eye11weld.Part1 = eye1
  587.         eye11weld.C0 = CFrame.new(-0.2,0.15,-0.52)
  588.         for i,v in pairs(owner.Character:GetChildren()) do
  589.             if v.ClassName == "CharacterMesh" or v.ClassName == "Shirt" or v.ClassName == "Pants" then
  590.                 v.Parent = owner.Character.Head
  591.             end
  592.             if v.ClassName == "Part" then
  593.                 v.BrickColor = BrickColor.new("Institutional white")
  594.                 if v.Name == "Head" then
  595.                     if v:findFirstChildOfClass("Decal") then
  596.                         v:findFirstChildOfClass("Decal").Transparency = 1
  597.                     end
  598.                 end
  599.             end
  600.             if v.ClassName == "Accessory" or v.ClassName == "Handle" then
  601.                 if v:findFirstChildOfClass("Part") then
  602.                     v:findFirstChildOfClass("Part").Transparency = 1
  603.                 end
  604.             end
  605.         end
  606.         suiton = true
  607.     end
  608. end
  609. TextButton4.MouseButton1Click:connect(pressedsuit)
  610. function detectwalk()
  611.     while step:wait() do
  612.         if rootpart.Velocity.x >= 2 or rootpart.Velocity.x <= -2 or rootpart.Velocity.z >= 2 or rootpart.Velocity.z <= -2 then
  613.             if ownerhumanoid.FloorMaterial == Enum.Material.Air then
  614.                 if rootpart.Velocity.x >= 17 or rootpart.Velocity.x <= -17 or rootpart.Velocity.z >= 17 or rootpart.Velocity.z <= -17 then
  615.                     if rootpart.Velocity.y >= 3 then
  616.                         anim = "jumprun"
  617.                         --print("jumping (running)")
  618.                     elseif rootpart.Velocity.y <= -3 then
  619.                         anim = "fallrun"
  620.                         --("falling (running)")
  621.                     end
  622.                 else
  623.                     if rootpart.Velocity.y >= 3 then
  624.                         anim = "jump"
  625.                         --print("jumping (walking)")
  626.                     elseif rootpart.Velocity.y <= -3 then
  627.                         anim = "fall"
  628.                         --print("falling (walking)")
  629.                     end
  630.                 end
  631.             else
  632.                 if rootpart.Velocity.x >= 17 or rootpart.Velocity.x <= -17 or rootpart.Velocity.z >= 17 or rootpart.Velocity.z <= -17 then
  633.                     anim = "run"
  634.                     --print("running")
  635.                 else
  636.                     anim = "walk"
  637.                     --print("walking")
  638.                 end
  639.             end
  640.         elseif rootpart.Velocity.x <= 2 or rootpart.Velocity.x >= -2 or rootpart.Velocity.z <= 2 or rootpart.Velocity.z >= -2 then
  641.             if ownerhumanoid.FloorMaterial == Enum.Material.Air then
  642.                 if rootpart.Velocity.y >= 3 then
  643.                     anim = "jump"
  644.                     --print("jumping (standing)")
  645.                 elseif rootpart.Velocity.y < -3 then
  646.                     anim = "fall"
  647.                     --print("falling (standing)")
  648.                 end
  649.             else
  650.                 anim = "idle"
  651.                 --print("standing")
  652.             end
  653.         end
  654.     end
  655. end
  656. spawn(detectwalk)
  657. jumpsine = 0
  658. local playedfootstep = false
  659. local footstep = Instance.new("Sound", rootpart)
  660. footstep.SoundId = "rbxassetid://131436155"
  661. footstep.Volume = 1.5
  662. while step:wait() do
  663.     sine = sine + 1
  664.     if cananimate then
  665.         if anim == "idle" then
  666.             if grabbed then
  667.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,math.cos(sine/20)/20,0)*CFrame.Angles(0,math.rad(90),0),0.3)
  668.                 head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(5)+math.sin(sine/25)/25,-math.rad(90),0),0.3)
  669.                 leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(0,0,-math.rad(30)+math.sin(sine/25)/25),0.3)
  670.                 rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(90),math.sin(sine/25)/25,math.rad(90)),0.3)
  671.                 leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/20)/20,0) * CFrame.Angles(0,0,-math.rad(10)),0.3)
  672.                 rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1-math.cos(sine/20)/20,0) * CFrame.Angles(0,0,math.rad(10)),0.3)
  673.             else
  674.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,-math.sin(sine/20)/30,-math.sin(sine/20)/10) * CFrame.Angles(0,math.rad(30)+math.rad(3*math.sin(sine/20)),0),0.2)
  675.                 head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(-5)+math.rad(-math.sin(sine/20)),math.rad(-30)-math.rad(2*math.sin(sine/20)),0),0.3)
  676.                 rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.55+math.sin(sine/20)/20,0.6-math.sin(sine/20)/20,-0.2) * CFrame.Angles(math.rad(4*math.sin(sine/20))+math.rad(math.cos(sine/20)),math.rad(25)+math.rad(2*math.sin(sine/20)),math.rad(10)+math.rad(2*math.sin(sine/20))),0.3)
  677.                 leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.55+math.sin(sine/20)/20,0.55-math.sin(sine/20)/15,0.1) * CFrame.Angles(math.rad(4*math.sin(sine/20))+math.rad(math.cos(sine/20)),math.rad(5)-math.rad(5*math.sin(sine/20)),math.rad(-10)+math.rad(2.5*math.sin(sine/20))),0.3)
  678.                 leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1+math.sin(sine/20)/30,math.sin(sine/20)/10) * CFrame.Angles(math.rad(-5),-math.rad(3*math.sin(sine/20)),math.rad(-5)),0.3)
  679.                 rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1+math.sin(sine/20)/30,math.sin(sine/20)/10) * CFrame.Angles(math.rad(4),-math.rad(3*math.sin(sine/20)),math.rad(5)),0.3)
  680.             end
  681.         elseif anim == "walk" then
  682.             if grabbed then
  683.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,math.sin(sine/3.5)/20,0) * CFrame.Angles(-0.1+math.cos(sine/3.5)/35,0,rootpart.RotVelocity.y/50),0.3)
  684.                 head.C0 = head.C0:lerp(CFrame.new(0,1,-0.05) * CFrame.Angles(-0.1-math.cos(sine/7)/35,rootpart.RotVelocity.y/20,0),0.3)
  685.                 leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,-math.sin(sine/7)/10) * CFrame.Angles(math.rad(30*math.sin(sine/7)),0,math.rad(5*-math.cos(sine/3.5))),0.3)
  686.                 rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,math.sin(sine/7)/10) * CFrame.Angles(math.rad(150)+math.rad(3*-math.sin(sine/7)),0,math.rad(25)),0.3)
  687.                 leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/7)/4,0) * CFrame.Angles(math.rad(40*-math.sin(sine/7)),0,0),0.3)
  688.                 rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/7)/4,0) * CFrame.Angles(math.rad(40*math.sin(sine/7)),0,0),0.3)
  689.             else
  690.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,math.sin(sine/3.5)/20,0) * CFrame.Angles(-0.1+math.cos(sine/3.5)/35,0,rootpart.RotVelocity.y/50),0.3)
  691.                 head.C0 = head.C0:lerp(CFrame.new(0,1,-0.05) * CFrame.Angles(-0.1-math.cos(sine/7)/35,rootpart.RotVelocity.y/20,0),0.3)
  692.                 leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,-math.sin(sine/7)/10) * CFrame.Angles(math.rad(30*math.sin(sine/7)),0,math.rad(5*-math.cos(sine/3.5))),0.3)
  693.                 rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,math.sin(sine/7)/10) * CFrame.Angles(math.rad(30*-math.sin(sine/7)),0,math.rad(5*math.cos(sine/3.5))),0.3)
  694.                 leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/7)/4,0) * CFrame.Angles(math.rad(40*-math.sin(sine/7)),0,0),0.3)
  695.                 rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/7)/4,0) * CFrame.Angles(math.rad(40*math.sin(sine/7)),0,0),0.3)
  696.             end
  697.             if (math.cos(sine/7)/4) <= 0.05 and (math.cos(sine/7)/4) >= -0.05 then
  698.                 if not playedfootstep then
  699.                     playedfootstep = true
  700.                     footstep:Play()
  701.                 end
  702.             else
  703.                 playedfootstep = false
  704.             end
  705.         elseif anim == "jump" then
  706.             if grabbed then
  707.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(math.rad(10),0,0), 0.2)
  708.                 rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,math.sin(sine/5)/10) * CFrame.Angles(math.rad(150)+math.rad(3*-math.sin(sine/5)),0,math.rad(25)),0.3)
  709.                 leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
  710.                 leftleg.C0 = CFrame.new(-0.5,-1,0) * CFrame.Angles(0,0,0)
  711.                 rightleg.C0 = CFrame.new(0.5,-1,0) * CFrame.Angles(0,0,0)
  712.                 head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(0,0,0),0.3)
  713.             else
  714.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(math.rad(10),0,0), 0.2)
  715.                 rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
  716.                 leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
  717.                 leftleg.C0 = CFrame.new(-0.5,-1,0) * CFrame.Angles(0,0,0)
  718.                 rightleg.C0 = CFrame.new(0.5,-1,0) * CFrame.Angles(0,0,0)
  719.                 head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(0,0,0),0.3)
  720.             end
  721.         elseif anim == "fall" then
  722.             if grabbed then
  723.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(-math.rad(10),0,0), 0.2)
  724.                 rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,math.sin(sine/5)/10) * CFrame.Angles(math.rad(150)+math.rad(3*-math.sin(sine/5)),0,math.rad(25)),0.3)
  725.                 leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,-math.rad(60)),0.2)
  726.                 leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-0.5,-0.5) * CFrame.Angles(0,0,0),0.2)
  727.                 rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-0.5,-0.5) * CFrame.Angles(0,0,0),0.2)
  728.                 head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
  729.             else
  730.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(-math.rad(10),0,0), 0.2)
  731.                 rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,math.rad(60)),0.2)
  732.                 leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,-math.rad(60)),0.2)
  733.                 leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-0.5,-0.5) * CFrame.Angles(0,0,0),0.2)
  734.                 rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-0.5,-0.5) * CFrame.Angles(0,0,0),0.2)
  735.                 head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
  736.             end
  737.         elseif anim == "jumprun" then
  738.             if grabbed then
  739.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(math.rad(-35),0,0), 0.2)
  740.                 rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,math.sin(sine/5)/10) * CFrame.Angles(math.rad(150)+math.rad(3*-math.sin(sine/5)),0,math.rad(25)),0.3)
  741.                 leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
  742.                 leftleg.C0 = CFrame.new(-0.5,-1,0) * CFrame.Angles(0,0,0)
  743.                 rightleg.C0 = CFrame.new(0.5,-1,0) * CFrame.Angles(0,0,0)
  744.                 head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(0,0,0),0.3)
  745.             else
  746.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(math.rad(-35),0,0), 0.2)
  747.                 rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
  748.                 leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
  749.                 leftleg.C0 = CFrame.new(-0.5,-1,0) * CFrame.Angles(0,0,0)
  750.                 rightleg.C0 = CFrame.new(0.5,-1,0) * CFrame.Angles(0,0,0)
  751.                 head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(0,0,0),0.3)
  752.             end
  753.         elseif anim == "fallrun" then
  754.             if grabbed then
  755.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(math.rad(35),0,0), 0.2)
  756.                 rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,math.sin(sine/5)/10) * CFrame.Angles(math.rad(150)+math.rad(3*-math.sin(sine/5)),0,math.rad(25)),0.3)
  757.                 leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,-math.rad(60)),0.2)
  758.                 leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-0.5,-0.5) * CFrame.Angles(0,0,0),0.2)
  759.                 rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-0.5,-0.5) * CFrame.Angles(0,0,0),0.2)
  760.                 head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
  761.             else
  762.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(math.rad(35),0,0), 0.2)
  763.                 rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,math.rad(60)),0.2)
  764.                 leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,-math.rad(60)),0.2)
  765.                 leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-0.5,-0.5) * CFrame.Angles(0,0,0),0.2)
  766.                 rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-0.5,-0.5) * CFrame.Angles(0,0,0),0.2)
  767.                 head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
  768.             end
  769.         elseif anim == "run" then
  770.             if grabbed then
  771.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,math.sin(sine/2.5)/10,0) * CFrame.Angles(-0.4+3*math.cos(sine/4)/35,0,rootpart.RotVelocity.y/50),0.3)
  772.                 head.C0 = head.C0:lerp(CFrame.new(0,1,-0.05) * CFrame.Angles(0.35-3*math.cos(sine/4)/35,rootpart.RotVelocity.y/20,0),0.3)
  773.                 leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,-math.sin(sine/5)/3) * CFrame.Angles(0.2+math.rad(80*math.sin(sine/5)),0,math.rad(8*-math.cos(sine/5))),0.3)
  774.                 rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,math.sin(sine/5)/10) * CFrame.Angles(math.rad(150)+math.rad(3*-math.sin(sine/5)),0,math.rad(25)),0.3)
  775.                 leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/5)/2.5,0) * CFrame.Angles(math.rad(70*-math.sin(sine/5)),0,0),0.3)
  776.                 rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/5)/2.5,0) * CFrame.Angles(math.rad(70*math.sin(sine/5)),0,0),0.3)
  777.             else
  778.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,math.sin(sine/2.5)/10,0) * CFrame.Angles(-0.4+3*math.cos(sine/4)/35,0,rootpart.RotVelocity.y/50),0.3)
  779.                 head.C0 = head.C0:lerp(CFrame.new(0,1,-0.05) * CFrame.Angles(0.35-3*math.cos(sine/4)/35,rootpart.RotVelocity.y/20,0),0.3)
  780.                 leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,-math.sin(sine/5)/3) * CFrame.Angles(0.2+math.rad(80*math.sin(sine/5)),0,math.rad(8*-math.cos(sine/2.5))),0.3)
  781.                 rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,math.sin(sine/5)/3) * CFrame.Angles(0.2+math.rad(80*-math.sin(sine/5)),0,math.rad(8*math.cos(sine/2.5))),0.3)
  782.                 leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/5)/2.5,0) * CFrame.Angles(math.rad(70*-math.sin(sine/5)),0,0),0.3)
  783.                 rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/5)/2.5,0) * CFrame.Angles(math.rad(70*math.sin(sine/5)),0,0),0.3)
  784.             end
  785.             if (math.cos(sine/5)/2.5) <= 0.05 and (math.cos(sine/5)/2.5) >= -0.05 then
  786.                 if not playedfootstep then
  787.                     playedfootstep = true
  788.                     footstep:Play()
  789.                 end
  790.             else
  791.                 playedfootstep = false
  792.             end
  793.         end
  794.     end
  795. end
Add Comment
Please, Sign In to add comment