sIendytubble

tube heros dantdm thing

May 15th, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.88 KB | None | 0 0
  1. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  2. local RealPlayer = Player
  3. local a=RealPlayer;char=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
  4. mas = owner.Character
  5. player = owner
  6. mouse = player:GetMouse()
  7. char = owner.Character
  8. wait()
  9. coroutine.resume(coroutine.create(function()
  10. while true do
  11. for i,v in pairs(char.Animate:GetChildren()) do
  12. for i,animation in pairs(v:GetChildren()) do
  13. animation.AnimationId = "rbxassetid://0"
  14. dooo = char.Humanoid:LoadAnimation(animation)
  15. dooo:Stop()
  16. end
  17. end
  18. wait(0.0001)
  19. end
  20. end))
  21. Part0 = Instance.new("Part")
  22. SpecialMesh1 = Instance.new("SpecialMesh")
  23. Weld2 = Instance.new("Weld")
  24. Part3 = owner.Character.Head
  25. BillboardGui4 = Instance.new("BillboardGui")
  26. ImageLabel5 = Instance.new("ImageLabel")
  27. Part6 = owner.Character["Left Arm"]
  28. SpecialMesh7 = Instance.new("SpecialMesh")
  29. Part8 = owner.Character["Left Leg"]
  30. SpecialMesh9 = Instance.new("SpecialMesh")
  31. Part10 = owner.Character["Right Arm"]
  32. Part11 = owner.Character["Right Leg"]
  33. SpecialMesh12 = Instance.new("SpecialMesh")
  34. Part13 = owner.Character.Torso
  35. SpecialMesh14 = Instance.new("SpecialMesh")
  36. Motor6D15 = Instance.new("Motor6D")
  37. Motor6D16 = Instance.new("Motor6D")
  38. Motor6D17 = Instance.new("Motor6D")
  39. Motor6D18 = Instance.new("Motor6D")
  40. Motor6D19 = Instance.new("Motor6D")
  41. Part0.Name = "Hammer"
  42. Part0.Parent = mas
  43. Part0.CFrame = CFrame.new(1.26990902, 17.1875, 22.0099335, 1, -4.94467658e-22, 2.08314539e-18, 4.94467658e-22, 1, -5.48416455e-22, -2.08314539e-18, 5.48416455e-22, 1)
  44. Part0.Position = Vector3.new(1.26990902, 17.1875, 22.0099335)
  45. Part0.Size = Vector3.new(0.75, 1, 4)
  46. Part0.CanCollide = false
  47. Part0.Locked = true
  48. Part0.FormFactor = Enum.FormFactor.Custom
  49. Part0.formFactor = Enum.FormFactor.Custom
  50. SpecialMesh1.Parent = Part0
  51. SpecialMesh1.MeshId = "rbxassetid://300344064"
  52. SpecialMesh1.Scale = Vector3.new(0.850000024, 0.850000024, 0.850000024)
  53. SpecialMesh1.TextureId = "rbxassetid://300344518"
  54. SpecialMesh1.MeshType = Enum.MeshType.FileMesh
  55. Part3.Name = "Head"
  56. Part3.Parent = mas
  57. Part3.CFrame = CFrame.new(0.0999030322, 19.2274952, 22.9599476, 1, -4.94467658e-22, 2.08314539e-18, 4.94467658e-22, 1, -5.48416455e-22, -2.08314539e-18, 5.48416455e-22, 1)
  58. Part3.Position = Vector3.new(0.0999030322, 19.2274952, 22.9599476)
  59. Part3.Transparency = 1
  60. Part3.Size = Vector3.new(1.75, 1.98999989, 0.75)
  61. Part3.Locked = true
  62. Part3.FormFactor = Enum.FormFactor.Custom
  63. Part3.formFactor = Enum.FormFactor.Custom
  64. BillboardGui4.Name = "Logo"
  65. BillboardGui4.Parent = Part3
  66. BillboardGui4.Enabled = false
  67. BillboardGui4.Size = UDim2.new(4.5, 0, 2.125, 0)
  68. BillboardGui4.Adornee = Part3
  69. BillboardGui4.StudsOffset = Vector3.new(0, 2.25, 0)
  70. ImageLabel5.Parent = BillboardGui4
  71. ImageLabel5.Size = UDim2.new(1, 0, 1, 0)
  72. ImageLabel5.BackgroundColor = BrickColor.new("Institutional white")
  73. ImageLabel5.BackgroundColor3 = Color3.new(1, 1, 1)
  74. ImageLabel5.BackgroundTransparency = 1
  75. ImageLabel5.BorderSizePixel = 0
  76. ImageLabel5.Image = "http://www.roblox.com/asset/?id=300344622"
  77. Part6.Name = "Left Arm"
  78. Part6.Parent = mas
  79. Part6.CFrame = CFrame.new(-1.27009189, 16.9575005, 22.9699402, 1, -4.94467658e-22, 2.08314539e-18, 4.94467658e-22, 1, -5.48416455e-22, -2.08314539e-18, 5.48416455e-22, 1)
  80. Part6.Position = Vector3.new(-1.27009189, 16.9575005, 22.9699402)
  81. Part6.Size = Vector3.new(0.75, 2.375, 0.75)
  82. Part6.CanCollide = false
  83. Part6.Locked = true
  84. Part6.FormFactor = Enum.FormFactor.Custom
  85. Part6.formFactor = Enum.FormFactor.Custom
  86. SpecialMesh7.Parent = Part6
  87. SpecialMesh7.MeshId = "rbxassetid://300344022"
  88. SpecialMesh7.Scale = Vector3.new(0.850000024, 0.850000024, 0.850000024)
  89. SpecialMesh7.TextureId = "rbxassetid://300344518"
  90. SpecialMesh7.MeshType = Enum.MeshType.FileMesh
  91. Part8.Name = "Left Leg"
  92. Part8.Parent = mas
  93. Part8.CFrame = CFrame.new(-0.400086999, 15.6175003, 22.7199345, 1, -4.94467658e-22, 2.08314539e-18, 4.94467658e-22, 1, -5.48416455e-22, -2.08314539e-18, 5.48416455e-22, 1)
  94. Part8.Position = Vector3.new(-0.400086999, 15.6175003, 22.7199345)
  95. Part8.Size = Vector3.new(0.75, 2.375, 0.75)
  96. Part8.CanCollide = false
  97. Part8.Locked = true
  98. Part8.FormFactor = Enum.FormFactor.Custom
  99. Part8.formFactor = Enum.FormFactor.Custom
  100. SpecialMesh9.Parent = Part8
  101. SpecialMesh9.MeshId = "rbxassetid://300344043"
  102. SpecialMesh9.Scale = Vector3.new(0.850000024, 0.850000024, 0.850000024)
  103. SpecialMesh9.TextureId = "rbxassetid://300344518"
  104. SpecialMesh9.MeshType = Enum.MeshType.FileMesh
  105. Part10.Name = "Right Arm"
  106. Part10.Parent = mas
  107. Part10.CFrame = CFrame.new(1.26990902, 16.9575005, 22.9699402, 1, -4.94467658e-22, 2.08314539e-18, 4.94467658e-22, 1, -5.48416455e-22, -2.08314539e-18, 5.48416455e-22, 1)
  108. Part10.Position = Vector3.new(1.26990902, 16.9575005, 22.9699402)
  109. Part10.Transparency = 1
  110. Part10.Size = Vector3.new(0.75, 2.375, 0.75)
  111. Part10.CanCollide = false
  112. Part10.Locked = true
  113. Part10.FormFactor = Enum.FormFactor.Custom
  114. Part10.formFactor = Enum.FormFactor.Custom
  115. Part11.Name = "Right Leg"
  116. Part11.Parent = mas
  117. Part11.CFrame = CFrame.new(0.599915028, 15.6175003, 22.7199345, 1, -4.94467658e-22, 2.08314539e-18, 4.94467658e-22, 1, -5.48416455e-22, -2.08314539e-18, 5.48416455e-22, 1)
  118. Part11.Position = Vector3.new(0.599915028, 15.6175003, 22.7199345)
  119. Part11.Size = Vector3.new(0.75, 2.375, 0.75)
  120. Part11.CanCollide = false
  121. Part11.Locked = true
  122. Part11.FormFactor = Enum.FormFactor.Custom
  123. Part11.formFactor = Enum.FormFactor.Custom
  124. SpecialMesh12.Parent = Part11
  125. SpecialMesh12.MeshId = "rbxassetid://300344090"
  126. SpecialMesh12.Scale = Vector3.new(0.850000024, 0.850000024, 0.850000024)
  127. SpecialMesh12.TextureId = "rbxassetid://300344518"
  128. SpecialMesh12.MeshType = Enum.MeshType.FileMesh
  129. Part13.Name = "Torso"
  130. Part13.Parent = mas
  131. Part13.CFrame = CFrame.new(0.0999030024, 18.0974998, 22.9599476, 1, -4.94467658e-22, 2.08314539e-18, 4.94467658e-22, 1, -5.48416455e-22, -2.08314539e-18, 5.48416455e-22, 1)
  132. Part13.Position = Vector3.new(0.0999030024, 18.0974998, 22.9599476)
  133. Part13.Size = Vector3.new(1.75, 2.625, 0.75)
  134. Part13.Locked = true
  135. Part13.FormFactor = Enum.FormFactor.Custom
  136. Part13.formFactor = Enum.FormFactor.Custom
  137. SpecialMesh14.Parent = Part13
  138. SpecialMesh14.MeshId = "rbxassetid://300344229"
  139. SpecialMesh14.Scale = Vector3.new(0.850000024, 0.850000024, 0.850000024)
  140. SpecialMesh14.TextureId = "rbxassetid://300344518"
  141. SpecialMesh14.MeshType = Enum.MeshType.FileMesh
  142. Motor6D15.Name = "Right Shoulder"
  143. Motor6D15.Parent = Part13
  144. Motor6D15.MaxVelocity = 0.15000000596046
  145. Motor6D15.C0 = CFrame.new(1.35750604, -0.17124939, -0.0525079966, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)
  146. Motor6D15.C1 = CFrame.new(0.1875, 0.96875, -0.0625, -4.37113883e-08, -2.31214247e-43, 1, 0, 1, 9.57700864e-30, -1, 0, -4.37113883e-08)
  147. Motor6D15.Part0 = Part13
  148. Motor6D15.Part1 = Part10
  149. Motor6D15.part1 = Part10
  150. Motor6D16.Name = "Left Hip"
  151. Motor6D16.Parent = Part13
  152. Motor6D16.MaxVelocity = 0.15000000596046
  153. Motor6D16.C0 = CFrame.new(-0.312490016, -1.63624954, -0.0525129735, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)
  154. Motor6D16.C1 = CFrame.new(0.1875, 0.84375, 0.1875, -4.37113883e-08, -2.4662853e-43, -1, 0, 1, 9.24173583e-30, 1, 0, -4.37113883e-08)
  155. Motor6D16.Part0 = Part13
  156. Motor6D16.Part1 = Part8
  157. Motor6D16.part1 = Part8
  158. Motor6D17.Name = "Right Hip"
  159. Motor6D17.Parent = Part13
  160. Motor6D17.MaxVelocity = 0.15000000596046
  161. Motor6D17.C0 = CFrame.new(0.68751204, -1.63624954, -0.0525129735, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)
  162. Motor6D17.C1 = CFrame.new(0.1875, 0.84375, 0.1875, -4.37113883e-08, -2.4662853e-43, 1, 0, 1, 9.24173583e-30, -1, 0, -4.37113883e-08)
  163. Motor6D17.Part0 = Part13
  164. Motor6D17.Part1 = Part11
  165. Motor6D17.part1 = Part11
  166. Motor6D18.Name = "Left Shoulder"
  167. Motor6D18.Parent = Part13
  168. Motor6D18.MaxVelocity = 0.15000000596046
  169. Motor6D18.C0 = CFrame.new(-1.18249488, -0.17124939, -0.0525079966, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)
  170. Motor6D18.C1 = CFrame.new(0.1875, 0.96875, -0.0625, -4.37113883e-08, -2.31214247e-43, -1, 0, 1, 9.57700864e-30, 1, 0, -4.37113883e-08)
  171. Motor6D18.Part0 = Part13
  172. Motor6D18.Part1 = Part6
  173. Motor6D18.part1 = Part6
  174. Motor6D19.Name = "Neck"
  175. Motor6D19.Parent = Part13
  176. Motor6D19.MaxVelocity = 0.15000000596046
  177. Motor6D19.C0 = CFrame.new(0.43750003, 1.6274972, 0.18749997, 1, 0, 0, 0, -4.37113883e-08, -1, 0, 1, -4.37113883e-08)
  178. Motor6D19.C1 = CFrame.new(0.4375, 0.497501373, 0.1875, 1, 0, 4.13571789e-30, -2.4662853e-43, -4.37113883e-08, -1, 0, 1, -4.37113883e-08)
  179. Motor6D19.Part0 = Part13
  180. Motor6D19.Part1 = Part3
  181. Motor6D19.part1 = Part3
  182. Weld2.Parent = Part0
  183. Weld2.C0 = CFrame.new(-1.26535201, -2.55499506, -0.492372006, 1, 0, 0, 0, 1, 0, 0, 0, 1) --* CFrame.Angles(0,0,-math.rad(180))
  184. Weld2.C1 = CFrame.new(-1.26535201, -2.78499508, 0.467633992, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  185. Weld2.Part0 = Part10
  186. Weld2.Part1 = Part0
  187. Weld2.part1 = Part0
  188. --Made by Luckymaxer
  189.  
  190. Figure = char
  191.  
  192. RunService = game:GetService("RunService")
  193.  
  194.  
  195. Humanoid = Figure:WaitForChild("Humanoid")
  196. Head = Figure:WaitForChild("Head")
  197. Torso = Figure:WaitForChild("Torso")
  198.  
  199. Neck = Motor6D19
  200. LeftShoulder = Motor6D18
  201. RightShoulder = Motor6D15
  202. LeftHip = Motor6D16
  203. RightHip = Motor6D17
  204.  
  205.  
  206. for i, v in pairs({Neck, LeftShoulder, RightShoulder, LeftHip, RightHip}) do
  207. if v and v.Parent then
  208. v.DesiredAngle = 0
  209. v.CurrentAngle = 0
  210. end
  211. end
  212.  
  213. Pose = "None"
  214. LastPose = Pose
  215. PoseTime = tick()
  216.  
  217. ToolAnimTime = 0
  218.  
  219. function SetPose(pose)
  220. LastPose = Pose
  221. Pose = pose
  222. PoseTime = tick()
  223. end
  224.  
  225. function OnRunning(Speed)
  226. if Speed > 0 then
  227. SetPose("Running")
  228. else
  229. SetPose("Standing")
  230. end
  231. end
  232.  
  233. function OnDied()
  234. SetPose("Dead")
  235. end
  236.  
  237. function OnJumping()
  238. SetPose("Jumping")
  239. end
  240.  
  241. function OnClimbing()
  242. SetPose("Climbing")
  243. end
  244.  
  245. function OnGettingUp()
  246. SetPose("GettingUp")
  247. end
  248.  
  249. function OnFreeFall()
  250. SetPose("FreeFall")
  251. end
  252.  
  253. function OnFallingDown()
  254. SetPose("FallingDown")
  255. end
  256.  
  257. function OnSeated()
  258. SetPose("Seated")
  259. end
  260.  
  261. function OnPlatformStanding()
  262. SetPose("PlatformStanding")
  263. end
  264.  
  265. function OnSwimming(Speed)
  266. return OnRunning(Speed)
  267. end
  268.  
  269. function MoveJump()
  270. RightShoulder.MaxVelocity = 0.15
  271. LeftShoulder.MaxVelocity = 0.15
  272. RightShoulder.DesiredAngle = math.pi
  273. LeftShoulder.DesiredAngle = -math.pi
  274. RightHip.DesiredAngle = 0
  275. LeftHip.DesiredAngle = 0
  276. end
  277.  
  278. function MoveFreeFall()
  279. RightShoulder.MaxVelocity = 0.25
  280. LeftShoulder.MaxVelocity = 0.25
  281. RightShoulder.DesiredAngle = math.pi
  282. LeftShoulder.DesiredAngle = -math.pi
  283. RightHip.DesiredAngle = 0
  284. LeftHip.DesiredAngle = 0
  285. end
  286.  
  287. function MoveSit()
  288. RightShoulder.MaxVelocity = 0.15
  289. LeftShoulder.MaxVelocity = 0.15
  290. RightShoulder.DesiredAngle = (math.pi / 2)
  291. LeftShoulder.DesiredAngle = -(math.pi / 2)
  292. RightHip.DesiredAngle = 1
  293. LeftHip.DesiredAngle = -1
  294. end
  295.  
  296. function GetTool()
  297. for i, v in pairs(Figure:GetChildren()) do
  298. if v:IsA("Tool") then
  299. return v
  300. end
  301. end
  302. end
  303.  
  304. function GetToolAnim(Tool)
  305. for i, v in pairs(Tool:GetChildren()) do
  306. if v:IsA("StringValue") and v.Name == "ToolAnim" then
  307. return v
  308. end
  309. end
  310. return nil
  311. end
  312.  
  313. function AnimateTool()
  314.  
  315. if (ToolAnim == "None") then
  316. return
  317. end
  318.  
  319. if (ToolAnim == "Slash") then
  320. RightShoulder.MaxVelocity = 0.5
  321. RightShoulder.DesiredAngle = 0
  322. return
  323. end
  324.  
  325. if (ToolAnim == "Lunge") then
  326. RightShoulder.MaxVelocity = 0.5
  327. LeftShoulder.MaxVelocity = 0.5
  328. RightHip.MaxVelocity = 0.5
  329. LeftHip.MaxVelocity = 0.5
  330. RightShoulder.DesiredAngle = (math.pi / 2)
  331. LeftShoulder.DesiredAngle = 0
  332. RightHip.DesiredAngle = (math.pi / 2)
  333. LeftHip.DesiredAngle = 1
  334. return
  335. end
  336.  
  337. end
  338.  
  339. function Move(Time)
  340. local LimbAmplitude
  341. local LimbFrequency
  342. local NeckAmplitude
  343. local NeckFrequency
  344. local NeckDesiredAngle
  345.  
  346. if (Pose == "Jumping") then
  347. MoveJump()
  348. return
  349. elseif (Pose == "FreeFall") then
  350. MoveFreeFall()
  351. return
  352. elseif (Pose == "Seated") then
  353. MoveSit()
  354. return
  355. end
  356.  
  357. local ClimbFudge = 0
  358.  
  359. if (Pose == "Running") then
  360. RightShoulder.MaxVelocity = 0.15
  361. LeftShoulder.MaxVelocity = 0.15
  362. LimbAmplitude = 1
  363. LimbFrequency = 9
  364. NeckAmplitude = 0
  365. NeckFrequency = 0
  366. NeckDesiredAngle = 0
  367. --[[if Creator and Creator.Value and Creator.Value:IsA("Player") and Creator.Value.Character then
  368. local CreatorCharacter = Creator.Value.Character
  369. local CreatorHead = CreatorCharacter:FindFirstChild("Head")
  370. if CreatorHead then
  371. local TargetPosition = CreatorHead.Position
  372. local Direction = Torso.CFrame.lookVector
  373. local HeadPosition = Head.Position
  374. NeckDesiredAngle = ((((HeadPosition - TargetPosition).Unit):Cross(Direction)).Y / 4)
  375. end
  376. end]]
  377. elseif (Pose == "Climbing") then
  378. RightShoulder.MaxVelocity = 0.5
  379. LeftShoulder.MaxVelocity = 0.5
  380. LimbAmplitude = 1
  381. LimbFrequency = 9
  382. NeckAmplitude = 0
  383. NeckFrequency = 0
  384. NeckDesiredAngle = 0
  385. ClimbFudge = math.pi
  386. else
  387. LimbAmplitude = 0.1
  388. LimbFrequency = 1
  389. NeckAmplitude = 0.25
  390. NeckFrequency = 1.25
  391. end
  392.  
  393. NeckDesiredAngle = ((not NeckDesiredAngle and (NeckAmplitude * math.sin(Time * NeckFrequency))) or NeckDesiredAngle)
  394. LimbDesiredAngle = (LimbAmplitude * math.sin(Time * LimbFrequency))
  395.  
  396. --Neck.DesiredAngle = NeckDesiredAngle
  397. RightShoulder.DesiredAngle = (LimbDesiredAngle + ClimbFudge)
  398. LeftShoulder.DesiredAngle = (LimbDesiredAngle - ClimbFudge)
  399. RightHip.DesiredAngle = -LimbDesiredAngle
  400. LeftHip.DesiredAngle = -LimbDesiredAngle
  401.  
  402. local Tool = GetTool()
  403.  
  404. if Tool then
  405.  
  406. AnimStringValueObject = GetToolAnim(Tool)
  407.  
  408. if AnimStringValueObject then
  409. ToolAnim = AnimStringValueObject.Value
  410. if AnimStringValueObject and AnimStringValueObject.Parent then
  411. AnimStringValueObject:Destroy()
  412. end
  413. ToolAnimTime = (Time + 0.3)
  414. end
  415.  
  416. if Time > ToolAnimTime then
  417. ToolAnimTime = 0
  418. ToolAnim = "None"
  419. end
  420.  
  421. AnimateTool()
  422.  
  423. else
  424. ToolAnim = "None"
  425. ToolAnimTime = 0
  426. end
  427.  
  428. end
  429.  
  430. Humanoid.Died:connect(OnDied)
  431. Humanoid.Running:connect(OnRunning)
  432. Humanoid.Jumping:connect(OnJumping)
  433. Humanoid.Climbing:connect(OnClimbing)
  434. Humanoid.GettingUp:connect(OnGettingUp)
  435. Humanoid.FreeFalling:connect(OnFreeFall)
  436. Humanoid.FallingDown:connect(OnFallingDown)
  437. Humanoid.Seated:connect(OnSeated)
  438. Humanoid.PlatformStanding:connect(OnPlatformStanding)
  439. Humanoid.Swimming:connect(OnSwimming)
  440.  
  441. Humanoid:ChangeState(Enum.HumanoidStateType.None)
  442.  
  443. RunService.Stepped:connect(function()
  444. local _, Time = wait(0.1)
  445. Move(Time)
  446. end)
Add Comment
Please, Sign In to add comment