sIendytubble

become a dog b to say wow click for attack

May 12th, 2020
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.26 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
  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. Model0 = char
  22. Part1 = char.Torso
  23. SpecialMesh2 = Instance.new("SpecialMesh")
  24. Motor6D3 = Instance.new("Motor6D")
  25. Weld4 = Instance.new("Weld")
  26. Motor6D5 = Instance.new("Motor6D")
  27. Motor6D6 = Instance.new("Motor6D")
  28. Motor6D7 = Instance.new("Motor6D")
  29. Motor6D8 = Instance.new("Motor6D")
  30. Part9 = char.Head
  31. Sound10 = Instance.new("Sound")
  32. Sound11 = Instance.new("Sound")
  33. mouse.Button1Down:Connect(function()
  34. Sound10:Play()
  35. end)
  36. char.Torso.Touched:Connect(function(part)
  37. if Sound10.Playing == true then
  38. if part.Parent and part.Parent:FindFirstChildOfClass("Humanoid") then
  39. part.Parent:FindFirstChildOfClass("Humanoid").Health = part.Parent:FindFirstChildOfClass("Humanoid").Health - 25
  40. end
  41. end
  42. end)
  43. mouse.KeyDown:Connect(function(key)
  44. if key == "b" then
  45. Sound11:Play()
  46. end
  47. end)
  48. Part12 = char["Left Arm"]
  49. SpecialMesh13 = Instance.new("SpecialMesh")
  50. Part14 = char["Left Leg"]
  51. SpecialMesh15 = Instance.new("SpecialMesh")
  52. Part16 = char["Right Arm"]
  53. SpecialMesh17 = Instance.new("SpecialMesh")
  54. Part18 = char["Right Leg"]
  55. SpecialMesh19 = Instance.new("SpecialMesh")
  56. Part20 = Instance.new("Part")
  57. SpecialMesh21 = Instance.new("SpecialMesh")
  58. Humanoid22 = char.Humanoid
  59. Hat23 = Instance.new("Hat")
  60. Part1.Name = "Torso"
  61. Part1.Parent = Model0
  62. Part1.CFrame = CFrame.new(27.1555939, 82.042984, -28.2461128, -0.161397934, -8.97734514e-22, 0.986889362, 2.31704841e-21, 1, 1.28859573e-21, -0.986889362, 2.49464728e-21, -0.161397934)
  63. Part1.Orientation = Vector3.new(0, 99.2900009, 0)
  64. Part1.Position = Vector3.new(27.1555939, 82.042984, -28.2461128)
  65. Part1.Rotation = Vector3.new(-180, 80.7099991, 180)
  66. Part1.Size = Vector3.new(1, 1.5, 3.75)
  67. Part1.BottomSurface = Enum.SurfaceType.Smooth
  68. Part1.Locked = true
  69. Part1.TopSurface = Enum.SurfaceType.Smooth
  70. Part1.FormFactor = Enum.FormFactor.Custom
  71. Part1.formFactor = Enum.FormFactor.Custom
  72. SpecialMesh2.Parent = Part1
  73. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=257307222"
  74. SpecialMesh2.Scale = Vector3.new(1.10000002, 1, 1)
  75. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=255486143"
  76. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  77. Motor6D3.Name = "Tail"
  78. Motor6D3.Parent = Part1
  79. Motor6D3.MaxVelocity = 0.15000000596046
  80. Motor6D3.C0 = CFrame.new(-0.0517863631, -0.0699996948, 1.72020686, 1, 0, 0, 0, -4.37113883e-08, -1, 0, 1, -4.37113883e-08)
  81. Motor6D3.C1 = CFrame.new(0.143782854, -0.172836304, 0.234024048, 0.965675592, -0.252551526, -0.0607320629, 0.0605338626, 0.446179628, -0.892893791, 0.25259909, 0.858569145, 0.446152657)
  82. Motor6D3.Part0 = Part1
  83. Motor6D3.Part1 = Part20
  84. Motor6D3.part1 = Part20
  85. Weld4.Name = "Neck"
  86. Weld4.Parent = Part1
  87. Weld4.C0 = CFrame.new(-5.28991222e-07, -49.9792976, -4.23192978e-06, 1, 2.50387147e-21, -1.16694232e-21, -2.50387147e-21, 1, 9.25738092e-22, 1.16694232e-21, -9.25738092e-22, 1)
  88. Weld4.C1 = CFrame.new(-5.28991222e-07, -50.8292961, 1.37499571, 1, 2.50387147e-21, -1.16694232e-21, -2.50387147e-21, 1, 9.25738092e-22, 1.16694232e-21, -9.25738092e-22, 1)
  89. Weld4.Part0 = Part1
  90. Weld4.Part1 = Part9
  91. Weld4.part1 = Part9
  92. Motor6D5.Name = "Left Hip"
  93. Motor6D5.Parent = Part1
  94. Motor6D5.MaxVelocity = 0.15000000596046
  95. Motor6D5.C0 = CFrame.new(-0.226999998, -1.01200867, 1.20399976, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)
  96. Motor6D5.C1 = CFrame.new(0.125, 0.375, -0.199999928, -4.37113883e-08, -1.16027513e-42, -1, 0, 1, -4.22132457e-29, 1, 0, -4.37113883e-08)
  97. Motor6D5.Part0 = Part1
  98. Motor6D5.Part1 = Part14
  99. Motor6D5.part1 = Part14
  100. Motor6D6.Name = "Right Hip"
  101. Motor6D6.Parent = Part1
  102. Motor6D6.MaxVelocity = 0.15000000596046
  103. Motor6D6.C0 = CFrame.new(0.48300004, -1.01200867, 1.20399976, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)
  104. Motor6D6.C1 = CFrame.new(0.125, 0.375, -0.199999928, -4.37113883e-08, -1.16027513e-42, 1, 0, 1, -4.22132457e-29, -1, 0, -4.37113883e-08)
  105. Motor6D6.Part0 = Part1
  106. Motor6D6.Part1 = Part18
  107. Motor6D6.part1 = Part18
  108. Motor6D7.Name = "Right Shoulder"
  109. Motor6D7.Parent = Part1
  110. Motor6D7.MaxVelocity = 0.15000000596046
  111. Motor6D7.C0 = CFrame.new(0.52500093, -0.725003839, -0.654999971, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)
  112. Motor6D7.C1 = CFrame.new(0.12500003, 0.775001526, 0.0249999762, -4.37113883e-08, -1.05798034e-42, 1, 0, 1, -4.20018027e-29, -1, 0, -4.37113883e-08)
  113. Motor6D7.Part0 = Part1
  114. Motor6D7.Part1 = Part16
  115. Motor6D7.part1 = Part16
  116. Motor6D8.Name = "Left Shoulder"
  117. Motor6D8.Parent = Part1
  118. Motor6D8.MaxVelocity = 0.15000000596046
  119. Motor6D8.C0 = CFrame.new(-0.265000015, -0.725003839, -0.654999971, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)
  120. Motor6D8.C1 = CFrame.new(0.125, 0.775001526, 0.0249999762, -4.37113883e-08, -1.05798034e-42, -1, 0, 1, -4.20018027e-29, 1, 0, -4.37113883e-08)
  121. Motor6D8.Part0 = Part1
  122. Motor6D8.Part1 = Part12
  123. Motor6D8.part1 = Part12
  124. Part9.Name = "Head"
  125. Part9.Parent = Model0
  126. Part9.CFrame = CFrame.new(25.7986202, 82.8929825, -28.0241909, -0.161397934, -8.97734514e-22, 0.986889362, 2.31704841e-21, 1, 1.28859573e-21, -0.986889362, 2.49464728e-21, -0.161397934)
  127. Part9.Orientation = Vector3.new(0, 99.2900009, 0)
  128. Part9.Position = Vector3.new(25.7986202, 82.8929825, -28.0241909)
  129. Part9.Rotation = Vector3.new(-180, 80.7099991, 180)
  130. Part9.Transparency = 1
  131. Part9.Size = Vector3.new(1, 0.200000003, 1)
  132. Part9.BottomSurface = Enum.SurfaceType.Smooth
  133. Part9.Locked = true
  134. Part9.TopSurface = Enum.SurfaceType.Smooth
  135. Part9.FormFactor = Enum.FormFactor.Custom
  136. Part9.formFactor = Enum.FormFactor.Custom
  137. Sound10.Name = "Bark"
  138. Sound10.Parent = Part9
  139. Sound10.SoundId = "http://www.roblox.com/asset/?id=144016898"
  140. Sound10.Volume = 1
  141. Sound11.Name = "Wow"
  142. Sound11.Parent = Part9
  143. Sound11.SoundId = "http://www.roblox.com/asset/?id=257361046"
  144. Sound11.Volume = 1
  145. Part12.Name = "Left Arm"
  146. Part12.Parent = Model0
  147. Part12.CFrame = CFrame.new(26.5474548, 80.5429764, -27.7514763, -0.161397934, -8.97734514e-22, 0.986889362, 2.31704841e-21, 1, 1.28859573e-21, -0.986889362, 2.49464728e-21, -0.161397934)
  148. Part12.Orientation = Vector3.new(0, 99.2900009, 0)
  149. Part12.Position = Vector3.new(26.5474548, 80.5429764, -27.7514763)
  150. Part12.Rotation = Vector3.new(-180, 80.7099991, 180)
  151. Part12.Size = Vector3.new(0.5, 1.9000001, 0.5)
  152. Part12.BottomSurface = Enum.SurfaceType.Smooth
  153. Part12.CanCollide = false
  154. Part12.Locked = true
  155. Part12.TopSurface = Enum.SurfaceType.Smooth
  156. Part12.FormFactor = Enum.FormFactor.Custom
  157. Part12.formFactor = Enum.FormFactor.Custom
  158. SpecialMesh13.Parent = Part12
  159. SpecialMesh13.MeshId = "http://www.roblox.com/asset/?id=257307555"
  160. SpecialMesh13.Offset = Vector3.new(0.0250000004, 0.200000003, 0.75)
  161. SpecialMesh13.TextureId = "http://www.roblox.com/asset/?id=255486143"
  162. SpecialMesh13.MeshType = Enum.MeshType.FileMesh
  163. Part14.Name = "Left Leg"
  164. Part14.Parent = Model0
  165. Part14.CFrame = CFrame.new(28.5979977, 80.6559753, -28.12533, -0.161397934, -8.97734514e-22, 0.986889362, 2.31704841e-21, 1, 1.28859573e-21, -0.986889362, 2.49464728e-21, -0.161397934)
  166. Part14.Orientation = Vector3.new(0, 99.2900009, 0)
  167. Part14.Position = Vector3.new(28.5979977, 80.6559753, -28.12533)
  168. Part14.Rotation = Vector3.new(-180, 80.7099991, 180)
  169. Part14.Size = Vector3.new(0.5, 1.9000001, 0.5)
  170. Part14.BottomSurface = Enum.SurfaceType.Smooth
  171. Part14.CanCollide = false
  172. Part14.Locked = true
  173. Part14.TopSurface = Enum.SurfaceType.Smooth
  174. Part14.FormFactor = Enum.FormFactor.Custom
  175. Part14.formFactor = Enum.FormFactor.Custom
  176. SpecialMesh15.Parent = Part14
  177. SpecialMesh15.MeshId = "http://www.roblox.com/asset/?id=257316977"
  178. SpecialMesh15.Offset = Vector3.new(-0.075000003, -0.100000001, 0)
  179. SpecialMesh15.TextureId = "http://www.roblox.com/asset/?id=255486143"
  180. SpecialMesh15.MeshType = Enum.MeshType.FileMesh
  181. Part16.Name = "Right Arm"
  182. Part16.Parent = Model0
  183. Part16.CFrame = CFrame.new(26.4199505, 80.5429764, -28.5311184, -0.161397934, -8.97734514e-22, 0.986889362, 2.31704841e-21, 1, 1.28859573e-21, -0.986889362, 2.49464728e-21, -0.161397934)
  184. Part16.Orientation = Vector3.new(0, 99.2900009, 0)
  185. Part16.Position = Vector3.new(26.4199505, 80.5429764, -28.5311184)
  186. Part16.Rotation = Vector3.new(-180, 80.7099991, 180)
  187. Part16.Size = Vector3.new(0.5, 1.9000001, 0.5)
  188. Part16.BottomSurface = Enum.SurfaceType.Smooth
  189. Part16.CanCollide = false
  190. Part16.Locked = true
  191. Part16.TopSurface = Enum.SurfaceType.Smooth
  192. Part16.FormFactor = Enum.FormFactor.Custom
  193. Part16.formFactor = Enum.FormFactor.Custom
  194. SpecialMesh17.Parent = Part16
  195. SpecialMesh17.MeshId = "http://www.roblox.com/asset/?id=255485626"
  196. SpecialMesh17.Offset = Vector3.new(-0.0500000007, -0.0500000007, 0)
  197. SpecialMesh17.TextureId = "http://www.roblox.com/asset/?id=255486143"
  198. SpecialMesh17.MeshType = Enum.MeshType.FileMesh
  199. Part18.Name = "Right Leg"
  200. Part18.Parent = Model0
  201. Part18.CFrame = CFrame.new(28.4834061, 80.6559753, -28.8260212, -0.161397934, -8.97734514e-22, 0.986889362, 2.31704841e-21, 1, 1.28859573e-21, -0.986889362, 2.49464728e-21, -0.161397934)
  202. Part18.Orientation = Vector3.new(0, 99.2900009, 0)
  203. Part18.Position = Vector3.new(28.4834061, 80.6559753, -28.8260212)
  204. Part18.Rotation = Vector3.new(-180, 80.7099991, 180)
  205. Part18.Size = Vector3.new(0.5, 1.9000001, 0.5)
  206. Part18.BottomSurface = Enum.SurfaceType.Smooth
  207. Part18.CanCollide = false
  208. Part18.Locked = true
  209. Part18.TopSurface = Enum.SurfaceType.Smooth
  210. Part18.FormFactor = Enum.FormFactor.Custom
  211. Part18.formFactor = Enum.FormFactor.Custom
  212. SpecialMesh19.Parent = Part18
  213. SpecialMesh19.MeshId = "http://www.roblox.com/asset/?id=257317035"
  214. SpecialMesh19.Offset = Vector3.new(0.075000003, -0.100000001, 0)
  215. SpecialMesh19.TextureId = "http://www.roblox.com/asset/?id=255486143"
  216. SpecialMesh19.MeshType = Enum.MeshType.FileMesh
  217. Part20.Name = "Tail"
  218. Part20.Parent = Model0
  219. Part20.CFrame = CFrame.new(28.8055172, 82.2229843, -28.2734795, -0.405098438, 0.430559933, 0.806543767, 0.0607320741, 0.892893791, -0.446152687, -0.912253678, -0.1317527, -0.387858629)
  220. Part20.Orientation = Vector3.new(26.5, 115.68, 3.8900001)
  221. Part20.Position = Vector3.new(28.8055172, 82.2229843, -28.2734795)
  222. Part20.Rotation = Vector3.new(131, 53.7599983, -133.25)
  223. Part20.Size = Vector3.new(0.75, 1, 0.75)
  224. Part20.BottomSurface = Enum.SurfaceType.Smooth
  225. Part20.Locked = true
  226. Part20.TopSurface = Enum.SurfaceType.Smooth
  227. Part20.FormFactor = Enum.FormFactor.Custom
  228. Part20.formFactor = Enum.FormFactor.Custom
  229. SpecialMesh21.Parent = Part20
  230. SpecialMesh21.MeshId = "http://www.roblox.com/asset/?id=255485601"
  231. SpecialMesh21.TextureId = "http://www.roblox.com/asset/?id=255486143"
  232. SpecialMesh21.MeshType = Enum.MeshType.FileMesh
  233. Humanoid22.Parent = Model0
  234. Humanoid22.LeftLeg = Part14
  235. Humanoid22.NameOcclusion = Enum.NameOcclusion.NoOcclusion
  236. Humanoid22.RightLeg = Part18
  237. Humanoid22.Torso = Part1
  238. Hat23.Name = "NoHat"
  239. Hat23.Parent = Model0
  240. --Made by Luckymaxer
  241.  
  242. Figure = char
  243.  
  244. RunService = game:GetService("RunService")
  245.  
  246.  
  247. Humanoid = Figure:WaitForChild("Humanoid")
  248. Head = Figure:WaitForChild("Head")
  249. Torso = Figure:WaitForChild("Torso")
  250.  
  251. Neck = Torso:WaitForChild("Neck")
  252. LeftShoulder = Motor6D8
  253. RightShoulder = Motor6D7
  254. LeftHip = Motor6D5
  255. RightHip = Motor6D6
  256.  
  257. for i, v in pairs({--[[Neck, ]]LeftShoulder, RightShoulder, LeftHip, RightHip}) do
  258. if v and v.Parent then
  259. v.DesiredAngle = 0
  260. v.CurrentAngle = 0
  261. end
  262. end
  263.  
  264. Pose = "None"
  265. LastPose = Pose
  266. PoseTime = tick()
  267.  
  268. ToolAnimTime = 0
  269.  
  270. function SetPose(pose)
  271. LastPose = Pose
  272. Pose = pose
  273. PoseTime = tick()
  274. end
  275.  
  276. function OnRunning(Speed)
  277. if Speed > 0 then
  278. SetPose("Running")
  279. else
  280. SetPose("Standing")
  281. end
  282. end
  283.  
  284. function OnDied()
  285. SetPose("Dead")
  286. end
  287.  
  288. function OnJumping()
  289. SetPose("Jumping")
  290. end
  291.  
  292. function OnClimbing()
  293. SetPose("Climbing")
  294. end
  295.  
  296. function OnGettingUp()
  297. SetPose("GettingUp")
  298. end
  299.  
  300. function OnFreeFall()
  301. SetPose("FreeFall")
  302. end
  303.  
  304. function OnFallingDown()
  305. SetPose("FallingDown")
  306. end
  307.  
  308. function OnSeated()
  309. SetPose("Seated")
  310. end
  311.  
  312. function OnPlatformStanding()
  313. SetPose("PlatformStanding")
  314. end
  315.  
  316. function OnSwimming(Speed)
  317. return OnRunning(Speed)
  318. end
  319.  
  320. function MoveJump()
  321. RightShoulder.MaxVelocity = 0.15
  322. LeftShoulder.MaxVelocity = 0.15
  323. RightShoulder.DesiredAngle = 0.5
  324. LeftShoulder.DesiredAngle = -0.5
  325. RightHip.DesiredAngle = -0.5
  326. LeftHip.DesiredAngle = 0.5
  327. end
  328.  
  329. function MoveFreeFall()
  330. RightShoulder.MaxVelocity = 0.15
  331. LeftShoulder.MaxVelocity = 0.15
  332. RightShoulder.DesiredAngle = 0.5
  333. LeftShoulder.DesiredAngle = -0.5
  334. RightHip.DesiredAngle = -0.5
  335. LeftHip.DesiredAngle = 0.5
  336. end
  337.  
  338. function MoveSit()
  339. RightShoulder.MaxVelocity = 0.15
  340. LeftShoulder.MaxVelocity = 0.15
  341. RightShoulder.DesiredAngle = (math.pi / 2)
  342. LeftShoulder.DesiredAngle = -(math.pi / 2)
  343. RightHip.DesiredAngle = 1
  344. LeftHip.DesiredAngle = -1
  345. end
  346.  
  347. function GetTool()
  348. for i, v in pairs(Figure:GetChildren()) do
  349. if v:IsA("Tool") then
  350. return v
  351. end
  352. end
  353. end
  354.  
  355. function GetToolAnim(Tool)
  356. for i, v in pairs(Tool:GetChildren()) do
  357. if v:IsA("StringValue") and v.Name == "ToolAnim" then
  358. return v
  359. end
  360. end
  361. return nil
  362. end
  363.  
  364. function AnimateTool()
  365.  
  366. if (ToolAnim == "None") then
  367. return
  368. end
  369.  
  370. if (ToolAnim == "Slash") then
  371. RightShoulder.MaxVelocity = 0.5
  372. RightShoulder.DesiredAngle = 0
  373. return
  374. end
  375.  
  376. if (ToolAnim == "Lunge") then
  377. RightShoulder.MaxVelocity = 0.5
  378. LeftShoulder.MaxVelocity = 0.5
  379. RightHip.MaxVelocity = 0.5
  380. LeftHip.MaxVelocity = 0.5
  381. RightShoulder.DesiredAngle = (math.pi / 2)
  382. LeftShoulder.DesiredAngle = 0
  383. RightHip.DesiredAngle = (math.pi / 2)
  384. LeftHip.DesiredAngle = 1
  385. return
  386. end
  387.  
  388. end
  389.  
  390. function Move(Time)
  391. local LimbAmplitude
  392. local LimbFrequency
  393. local NeckAmplitude
  394. local NeckFrequency
  395. local NeckDesiredAngle
  396.  
  397. if (Pose == "Jumping") then
  398. MoveJump()
  399. return
  400. elseif (Pose == "FreeFall") then
  401. MoveFreeFall()
  402. return
  403. elseif (Pose == "Seated") then
  404. MoveSit()
  405. return
  406. end
  407.  
  408. local ClimbFudge = 0
  409.  
  410. if (Pose == "Running") then
  411. RightShoulder.MaxVelocity = 0.15
  412. LeftShoulder.MaxVelocity = 0.15
  413. LimbAmplitude = 1
  414. LimbFrequency = 9
  415. NeckAmplitude = 0
  416. NeckFrequency = 0
  417. NeckDesiredAngle = 0
  418. --[[if Creator and Creator.Value and Creator.Value:IsA("Player") and Creator.Value.Character then
  419. local CreatorCharacter = Creator.Value.Character
  420. local CreatorHead = CreatorCharacter:FindFirstChild("Head")
  421. if CreatorHead then
  422. local TargetPosition = CreatorHead.Position
  423. local Direction = Torso.CFrame.lookVector
  424. local HeadPosition = Head.Position
  425. NeckDesiredAngle = ((((HeadPosition - TargetPosition).Unit):Cross(Direction)).Y / 4)
  426. end
  427. end]]
  428. elseif (Pose == "Climbing") then
  429. RightShoulder.MaxVelocity = 0.5
  430. LeftShoulder.MaxVelocity = 0.5
  431. LimbAmplitude = 1
  432. LimbFrequency = 9
  433. NeckAmplitude = 0
  434. NeckFrequency = 0
  435. NeckDesiredAngle = 0
  436. ClimbFudge = math.pi
  437. else
  438. LimbAmplitude = 0.1
  439. LimbFrequency = 1
  440. NeckAmplitude = 0.25
  441. NeckFrequency = 1.25
  442. end
  443.  
  444. NeckDesiredAngle = ((not NeckDesiredAngle and (NeckAmplitude * math.sin(Time * NeckFrequency))) or NeckDesiredAngle)
  445. LimbDesiredAngle = (LimbAmplitude * math.sin(Time * LimbFrequency))
  446.  
  447. --Neck.DesiredAngle = NeckDesiredAngle
  448. RightShoulder.DesiredAngle = (LimbDesiredAngle + ClimbFudge)
  449. LeftShoulder.DesiredAngle = (LimbDesiredAngle - ClimbFudge)
  450. RightHip.DesiredAngle = -LimbDesiredAngle
  451. LeftHip.DesiredAngle = -LimbDesiredAngle
  452.  
  453. local Tool = GetTool()
  454.  
  455. if Tool then
  456.  
  457. AnimStringValueObject = GetToolAnim(Tool)
  458.  
  459. if AnimStringValueObject then
  460. ToolAnim = AnimStringValueObject.Value
  461. if AnimStringValueObject and AnimStringValueObject.Parent then
  462. AnimStringValueObject:Destroy()
  463. end
  464. ToolAnimTime = (Time + 0.3)
  465. end
  466.  
  467. if Time > ToolAnimTime then
  468. ToolAnimTime = 0
  469. ToolAnim = "None"
  470. end
  471.  
  472. AnimateTool()
  473.  
  474. else
  475. ToolAnim = "None"
  476. ToolAnimTime = 0
  477. end
  478.  
  479. end
  480.  
  481. Humanoid.Died:connect(OnDied)
  482. Humanoid.Running:connect(OnRunning)
  483. Humanoid.Jumping:connect(OnJumping)
  484. Humanoid.Climbing:connect(OnClimbing)
  485. Humanoid.GettingUp:connect(OnGettingUp)
  486. Humanoid.FreeFalling:connect(OnFreeFall)
  487. Humanoid.FallingDown:connect(OnFallingDown)
  488. Humanoid.Seated:connect(OnSeated)
  489. Humanoid.PlatformStanding:connect(OnPlatformStanding)
  490. Humanoid.Swimming:connect(OnSwimming)
  491.  
  492. Humanoid:ChangeState(Enum.HumanoidStateType.None)
  493.  
  494. RunService.Stepped:connect(function()
  495. local _, Time = wait(0.1)
  496. Move(Time)
  497. end)
Add Comment
Please, Sign In to add comment