Advertisement
cat568

Untitled

Mar 11th, 2019
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.96 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Model0 = Instance.new("Model")
  20. Part1 = Instance.new("Part")
  21. SpecialMesh2 = Instance.new("SpecialMesh")
  22. Decal3 = Instance.new("Decal")
  23. Script4 = Instance.new("Script")
  24. Part5 = Instance.new("Part")
  25. Motor6D6 = Instance.new("Motor6D")
  26. Part7 = Instance.new("Part")
  27. Part8 = Instance.new("Part")
  28. Part9 = Instance.new("Part")
  29. Part10 = Instance.new("Part")
  30. Part11 = Instance.new("Part")
  31. Decal12 = Instance.new("Decal")
  32. Motor6D13 = Instance.new("Motor6D")
  33. Motor6D14 = Instance.new("Motor6D")
  34. Motor6D15 = Instance.new("Motor6D")
  35. Motor6D16 = Instance.new("Motor6D")
  36. Motor6D17 = Instance.new("Motor6D")
  37. Weld18 = Instance.new("Weld")
  38. Sound19 = Instance.new("Sound")
  39. ParticleEmitter20 = Instance.new("ParticleEmitter")
  40. Humanoid21 = Instance.new("Humanoid")
  41. Shirt22 = Instance.new("Shirt")
  42. Pants23 = Instance.new("Pants")
  43. ShirtGraphic24 = Instance.new("ShirtGraphic")
  44. Accessory25 = Instance.new("Accessory")
  45. Part26 = Instance.new("Part")
  46. SpecialMesh27 = Instance.new("SpecialMesh")
  47. Vector3Value28 = Instance.new("Vector3Value")
  48. Camera29 = Instance.new("Camera")
  49. BodyColors30 = Instance.new("BodyColors")
  50. Script31 = Instance.new("Script")
  51. Model0.Name = "Tabby_cxt"
  52. Model0.Parent = mas
  53. Part1.Name = "Head"
  54. Part1.Parent = Model0
  55. Part1.CFrame = CFrame.new(28.0261288, 1.88851905, 34.7790794, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  56. Part1.Position = Vector3.new(28.0261288, 1.88851905, 34.7790794)
  57. Part1.Color = Color3.new(0.992157, 0.917647, 0.552941)
  58. Part1.Transparency = 1
  59. Part1.Size = Vector3.new(0.61711359, 0.308556736, 0.308556736)
  60. Part1.BrickColor = BrickColor.new("Cool yellow")
  61. Part1.TopSurface = Enum.SurfaceType.Smooth
  62. Part1.brickColor = BrickColor.new("Cool yellow")
  63. Part1.FormFactor = Enum.FormFactor.Symmetric
  64. Part1.formFactor = Enum.FormFactor.Symmetric
  65. SpecialMesh2.Parent = Part1
  66. SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25)
  67. Decal3.Name = "face"
  68. Decal3.Parent = Part1
  69. Decal3.Texture = "http://www.roblox.com/asset/?id=15431991"
  70. Script4.Parent = Part1
  71. table.insert(cors,sandbox(Script4,function()
  72. function die(hit)
  73.  
  74. script.Parent.Parent.Humanoid.Health = 0
  75. script.Parent.Parent.Torso.Sound:Play()
  76. script.Parent.Parent.Torso.ParticleEmitter:Emit()
  77.  
  78. script.Parent:remove()
  79. end
  80. script.Parent.Touched:Connect(die)
  81. end))
  82. Part5.Name = "HumanoidRootPart"
  83. Part5.Parent = Model0
  84. Part5.CFrame = CFrame.new(28.0261288, 1.42568398, 34.7790794, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  85. Part5.Position = Vector3.new(28.0261288, 1.42568398, 34.7790794)
  86. Part5.Transparency = 1
  87. Part5.Size = Vector3.new(0.61711359, 0.617113471, 0.308556736)
  88. Part5.BottomSurface = Enum.SurfaceType.Smooth
  89. Part5.CanCollide = false
  90. Part5.LeftParamA = 0
  91. Part5.LeftParamB = 0
  92. Part5.RightParamA = 0
  93. Part5.RightParamB = 0
  94. Part5.TopSurface = Enum.SurfaceType.Smooth
  95. Part5.FormFactor = Enum.FormFactor.Symmetric
  96. Part5.formFactor = Enum.FormFactor.Symmetric
  97. Motor6D6.Name = "RootJoint"
  98. Motor6D6.Parent = Part5
  99. Motor6D6.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  100. Motor6D6.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  101. Motor6D6.Part0 = Part5
  102. Motor6D6.Part1 = Part11
  103. Motor6D6.part1 = Part11
  104. Part7.Name = "Left Arm"
  105. Part7.Parent = Model0
  106. Part7.CFrame = CFrame.new(27.5632935, 1.42568398, 34.7790794, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  107. Part7.Position = Vector3.new(27.5632935, 1.42568398, 34.7790794)
  108. Part7.Color = Color3.new(0.992157, 0.917647, 0.552941)
  109. Part7.Size = Vector3.new(0.308556795, 0.617113471, 0.308556736)
  110. Part7.BrickColor = BrickColor.new("Cool yellow")
  111. Part7.CanCollide = false
  112. Part7.brickColor = BrickColor.new("Cool yellow")
  113. Part7.FormFactor = Enum.FormFactor.Symmetric
  114. Part7.formFactor = Enum.FormFactor.Symmetric
  115. Part8.Name = "Left Leg"
  116. Part8.Parent = Model0
  117. Part8.CFrame = CFrame.new(27.871851, 0.808570504, 34.7790794, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  118. Part8.Position = Vector3.new(27.871851, 0.808570504, 34.7790794)
  119. Part8.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  120. Part8.Size = Vector3.new(0.308556795, 0.617113471, 0.308556736)
  121. Part8.BottomSurface = Enum.SurfaceType.Smooth
  122. Part8.BrickColor = BrickColor.new("Bright blue")
  123. Part8.CanCollide = false
  124. Part8.brickColor = BrickColor.new("Bright blue")
  125. Part8.FormFactor = Enum.FormFactor.Symmetric
  126. Part8.formFactor = Enum.FormFactor.Symmetric
  127. Part9.Name = "Right Arm"
  128. Part9.Parent = Model0
  129. Part9.CFrame = CFrame.new(28.4889641, 1.42568398, 34.7790794, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  130. Part9.Position = Vector3.new(28.4889641, 1.42568398, 34.7790794)
  131. Part9.Color = Color3.new(0.992157, 0.917647, 0.552941)
  132. Part9.Size = Vector3.new(0.308556795, 0.617113471, 0.308556736)
  133. Part9.BrickColor = BrickColor.new("Cool yellow")
  134. Part9.CanCollide = false
  135. Part9.brickColor = BrickColor.new("Cool yellow")
  136. Part9.FormFactor = Enum.FormFactor.Symmetric
  137. Part9.formFactor = Enum.FormFactor.Symmetric
  138. Part10.Name = "Right Leg"
  139. Part10.Parent = Model0
  140. Part10.CFrame = CFrame.new(28.1804066, 0.808570504, 34.7790794, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  141. Part10.Position = Vector3.new(28.1804066, 0.808570504, 34.7790794)
  142. Part10.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  143. Part10.Size = Vector3.new(0.308556795, 0.617113471, 0.308556736)
  144. Part10.BottomSurface = Enum.SurfaceType.Smooth
  145. Part10.BrickColor = BrickColor.new("Bright blue")
  146. Part10.CanCollide = false
  147. Part10.brickColor = BrickColor.new("Bright blue")
  148. Part10.FormFactor = Enum.FormFactor.Symmetric
  149. Part10.formFactor = Enum.FormFactor.Symmetric
  150. Part11.Name = "Torso"
  151. Part11.Parent = Model0
  152. Part11.CFrame = CFrame.new(28.0261288, 1.42568398, 34.7790794, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  153. Part11.Position = Vector3.new(28.0261288, 1.42568398, 34.7790794)
  154. Part11.Color = Color3.new(0.156863, 0.498039, 0.278431)
  155. Part11.Size = Vector3.new(0.61711359, 0.617113471, 0.308556736)
  156. Part11.BrickColor = BrickColor.new("Dark green")
  157. Part11.LeftParamA = 0
  158. Part11.LeftParamB = 0
  159. Part11.LeftSurface = Enum.SurfaceType.Weld
  160. Part11.RightParamA = 0
  161. Part11.RightParamB = 0
  162. Part11.RightSurface = Enum.SurfaceType.Weld
  163. Part11.brickColor = BrickColor.new("Dark green")
  164. Part11.FormFactor = Enum.FormFactor.Symmetric
  165. Part11.formFactor = Enum.FormFactor.Symmetric
  166. Decal12.Name = "roblox"
  167. Decal12.Parent = Part11
  168. Motor6D13.Name = "Right Shoulder"
  169. Motor6D13.Parent = Part11
  170. Motor6D13.C0 = CFrame.new(0.308556795, 0.154278368, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  171. Motor6D13.C1 = CFrame.new(-0.154278398, 0.154278368, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  172. Motor6D13.Part0 = Part11
  173. Motor6D13.Part1 = Part9
  174. Motor6D13.part1 = Part9
  175. Motor6D14.Name = "Right Hip"
  176. Motor6D14.Parent = Part11
  177. Motor6D14.C0 = CFrame.new(0.308556795, -0.308556736, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  178. Motor6D14.C1 = CFrame.new(0.154278398, 0.308556736, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  179. Motor6D14.Part0 = Part11
  180. Motor6D14.Part1 = Part10
  181. Motor6D14.part1 = Part10
  182. Motor6D15.Name = "Neck"
  183. Motor6D15.Parent = Part11
  184. Motor6D15.C0 = CFrame.new(0, 0.308556736, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  185. Motor6D15.C1 = CFrame.new(0, -0.154278368, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  186. Motor6D15.Part0 = Part11
  187. Motor6D15.Part1 = Part1
  188. Motor6D15.part1 = Part1
  189. Motor6D16.Name = "Left Shoulder"
  190. Motor6D16.Parent = Part11
  191. Motor6D16.C0 = CFrame.new(-0.308556795, 0.154278368, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  192. Motor6D16.C1 = CFrame.new(0.154278398, 0.154278368, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  193. Motor6D16.Part0 = Part11
  194. Motor6D16.Part1 = Part7
  195. Motor6D16.part1 = Part7
  196. Motor6D17.Name = "Left Hip"
  197. Motor6D17.Parent = Part11
  198. Motor6D17.C0 = CFrame.new(-0.308556795, -0.308556736, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  199. Motor6D17.C1 = CFrame.new(-0.154278398, 0.308556736, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  200. Motor6D17.Part0 = Part11
  201. Motor6D17.Part1 = Part8
  202. Motor6D17.part1 = Part8
  203. Weld18.Name = "BTWeld"
  204. Weld18.Parent = Part11
  205. Weld18.C1 = CFrame.new(0.154277802, -0.55540216, -0.061794281, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
  206. Weld18.Part0 = Part11
  207. Weld18.Part1 = Part26
  208. Weld18.part1 = Part26
  209. Sound19.Parent = Part11
  210. Sound19.SoundId = "rbxassetid://429400881"
  211. Sound19.Volume = 1
  212. ParticleEmitter20.Parent = Part11
  213. ParticleEmitter20.Rotation = NumberRange.new(50, 360)
  214. ParticleEmitter20.Color = ColorSequence.new(Color3.new(0.764294, 0, 0.0264744),Color3.new(0.764294, 0, 0.0264744))
  215. ParticleEmitter20.Enabled = false
  216. ParticleEmitter20.LightInfluence = 1
  217. ParticleEmitter20.Texture = "rbxassetid://90124590"
  218. ParticleEmitter20.Size = NumberSequence.new(0.25,0.25)
  219. ParticleEmitter20.Acceleration = Vector3.new(0, -10, 0)
  220. ParticleEmitter20.Rate = 100
  221. ParticleEmitter20.RotSpeed = NumberRange.new(20, 200)
  222. ParticleEmitter20.SpreadAngle = Vector2.new(90, 90)
  223. ParticleEmitter20.VelocitySpread = 90
  224. Humanoid21.Parent = Model0
  225. Humanoid21.LeftLeg = Part8
  226. Humanoid21.RightLeg = Part10
  227. Humanoid21.Torso = Part5
  228. Shirt22.Name = "Shirt"
  229. Shirt22.Parent = Model0
  230. Shirt22.ShirtTemplate = "http://www.roblox.com/asset/?id=732890040"
  231. Pants23.Name = "Pants"
  232. Pants23.Parent = Model0
  233. Pants23.PantsTemplate = "http://www.roblox.com/asset/?id=379753257"
  234. ShirtGraphic24.Parent = Model0
  235. ShirtGraphic24.Graphic = "http://www.roblox.com/asset/?id=2082499872"
  236. Accessory25.Name = "CatEgg"
  237. Accessory25.Parent = Model0
  238. Accessory25.AttachmentPoint = CFrame.new(0.5, 0.200000003, -0.200000003, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  239. Accessory25.AttachmentPos = Vector3.new(0.5, 0.200000003, -0.200000003)
  240. Part26.Name = "Handle"
  241. Part26.Parent = Accessory25
  242. Part26.CFrame = CFrame.new(27.871851, 1.98108613, 34.8408737, 1, -7.87137555e-09, 0, 7.87137555e-09, 1, 4.1444221e-16, -3.26223034e-24, -4.1444221e-16, 1)
  243. Part26.Position = Vector3.new(27.871851, 1.98108613, 34.8408737)
  244. Part26.Size = Vector3.new(0.697338343, 0.60785675, 0.635626853)
  245. Part26.BottomSurface = Enum.SurfaceType.Smooth
  246. Part26.CanCollide = false
  247. Part26.TopSurface = Enum.SurfaceType.Smooth
  248. Part26.FormFactor = Enum.FormFactor.Symmetric
  249. Part26.formFactor = Enum.FormFactor.Symmetric
  250. SpecialMesh27.Parent = Part26
  251. SpecialMesh27.MeshId = "http://www.roblox.com/asset/?id=379552190"
  252. SpecialMesh27.Offset = Vector3.new(0.349999994, -0.224999994, -0.119999997)
  253. SpecialMesh27.Scale = Vector3.new(0.401123822, 0.401123732, 0.401123732)
  254. SpecialMesh27.TextureId = "http://www.roblox.com/asset/?id= 379541232"
  255. SpecialMesh27.MeshType = Enum.MeshType.FileMesh
  256. Vector3Value28.Name = "OriginalSize"
  257. Vector3Value28.Parent = Part26
  258. Vector3Value28.Value = Vector3.new(2.25999999, 1.96999991, 2.05999994)
  259. Camera29.Name = "ThumbnailCamera"
  260. Camera29.Parent = Accessory25
  261. Camera29.CFrame = CFrame.new(-0.427338123, 17.7189884, 17.3396072, -0.981754601, 0.0109182848, -0.189838737, -9.31322464e-10, 0.998350263, 0.057418596, 0.190152436, 0.0563709699, -0.980134904)
  262. Camera29.CoordinateFrame = CFrame.new(-0.427338123, 17.7189884, 17.3396072, -0.981754601, 0.0109182848, -0.189838737, -9.31322464e-10, 0.998350263, 0.057418596, 0.190152436, 0.0563709699, -0.980134904)
  263. Camera29.Focus = CFrame.new(-0.0476591438, 17.6041508, 19.2998848, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  264. Camera29.focus = CFrame.new(-0.0476591438, 17.6041508, 19.2998848, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  265. BodyColors30.Parent = Model0
  266. BodyColors30.HeadColor = BrickColor.new("Neon orange")
  267. BodyColors30.HeadColor3 = Color3.new(0.835294, 0.45098, 0.239216)
  268. BodyColors30.LeftArmColor = BrickColor.new("Neon orange")
  269. BodyColors30.LeftArmColor3 = Color3.new(0.835294, 0.45098, 0.239216)
  270. BodyColors30.LeftLegColor = BrickColor.new("Neon orange")
  271. BodyColors30.LeftLegColor3 = Color3.new(0.835294, 0.45098, 0.239216)
  272. BodyColors30.RightArmColor = BrickColor.new("Neon orange")
  273. BodyColors30.RightArmColor3 = Color3.new(0.835294, 0.45098, 0.239216)
  274. BodyColors30.RightLegColor = BrickColor.new("Neon orange")
  275. BodyColors30.RightLegColor3 = Color3.new(0.835294, 0.45098, 0.239216)
  276. BodyColors30.TorsoColor = BrickColor.new("Neon orange")
  277. BodyColors30.TorsoColor3 = Color3.new(0.835294, 0.45098, 0.239216)
  278. Script31.Name = "Animate"
  279. Script31.Parent = Model0
  280. table.insert(cors,sandbox(Script31,function()
  281. local Figure = script.Parent
  282. local Torso = Figure:WaitForChild("Torso")
  283. local RightShoulder = Torso:WaitForChild("Right Shoulder")
  284. local LeftShoulder = Torso:WaitForChild("Left Shoulder")
  285. local RightHip = Torso:WaitForChild("Right Hip")
  286. local LeftHip = Torso:WaitForChild("Left Hip")
  287. local Neck = Torso:WaitForChild("Neck")
  288. local Humanoid = Figure:WaitForChild("Humanoid")
  289.  
  290. local pose = "Standing"
  291.  
  292. local toolAnim = "None"
  293. local toolAnimTime = 0
  294.  
  295. local isSeated = false
  296.  
  297. -- functions
  298.  
  299. function onRunning(speed)
  300. if isSeated then return end
  301.  
  302. if speed>0 then
  303. pose = "Running"
  304. else
  305. pose = "Standing"
  306. end
  307. end
  308.  
  309. function onDied()
  310. pose = "Dead"
  311. end
  312.  
  313. function onJumping()
  314. isSeated = false
  315. pose = "Jumping"
  316. end
  317.  
  318. function onClimbing()
  319. pose = "Climbing"
  320. end
  321.  
  322. function onGettingUp()
  323. pose = "GettingUp"
  324. end
  325.  
  326. function onFreeFall()
  327. pose = "FreeFall"
  328. end
  329.  
  330. function onFallingDown()
  331. pose = "FallingDown"
  332. end
  333.  
  334. function onSeated()
  335. isSeated = true
  336. pose = "Seated"
  337. print("Seated")
  338. end
  339.  
  340.  
  341.  
  342. function moveJump()
  343. RightShoulder.MaxVelocity = 0.5
  344. LeftShoulder.MaxVelocity = 0.5
  345. RightShoulder.DesiredAngle = 3.14
  346. LeftShoulder.DesiredAngle = -3.14
  347. RightHip.DesiredAngle = 0
  348. LeftHip.DesiredAngle = 0
  349. end
  350.  
  351. function moveFreeFall()
  352. RightShoulder.MaxVelocity = 0.5
  353. LeftShoulder.MaxVelocity = 0.5
  354. RightShoulder.DesiredAngle = 1
  355. LeftShoulder.DesiredAngle = -1
  356. RightHip.DesiredAngle = 0
  357. LeftHip.DesiredAngle = 0
  358. end
  359.  
  360.  
  361. function moveClimb()
  362. RightShoulder.MaxVelocity = 0.5
  363. LeftShoulder.MaxVelocity = 0.5
  364. RightShoulder.DesiredAngle = -3.14
  365. LeftShoulder.DesiredAngle = 3.14
  366. RightHip.DesiredAngle = 0
  367. LeftHip.DesiredAngle = 0
  368. end
  369.  
  370. function moveSit()
  371. print("Move Sit")
  372. RightShoulder.MaxVelocity = 0.15
  373. LeftShoulder.MaxVelocity = 0.15
  374. RightShoulder.DesiredAngle = 3.14 /2
  375. LeftShoulder.DesiredAngle = -3.14 /2
  376. RightHip.DesiredAngle = 3.14 /2
  377. LeftHip.DesiredAngle = -3.14 /2
  378. end
  379.  
  380. function getTool()
  381.  
  382. kidTable = Figure:children()
  383. if (kidTable ~= nil) then
  384. numKids = #kidTable
  385. for i=1,numKids do
  386. if (kidTable[i].className == "Tool") then return kidTable[i] end
  387. end
  388. end
  389.  
  390. return nil
  391. end
  392.  
  393. function getToolAnim(tool)
  394.  
  395. c = tool:children()
  396. for i=1,#c do
  397. if (c[i].Name == "toolanim" and c[i].className == "StringValue") then
  398. return c[i]
  399. end
  400. end
  401. return nil
  402. end
  403.  
  404. function animateTool()
  405.  
  406. if (toolAnim == "None") then
  407. RightShoulder.DesiredAngle = 1.57
  408. return
  409. end
  410.  
  411. if (toolAnim == "Slash") then
  412. RightShoulder.MaxVelocity = 0.5
  413. RightShoulder.DesiredAngle = 0
  414. return
  415. end
  416.  
  417. if (toolAnim == "Lunge") then
  418. RightShoulder.MaxVelocity = 0.5
  419. LeftShoulder.MaxVelocity = 0.5
  420. RightHip.MaxVelocity = 0.5
  421. LeftHip.MaxVelocity = 0.5
  422. RightShoulder.DesiredAngle = 1.57
  423. LeftShoulder.DesiredAngle = 1.0
  424. RightHip.DesiredAngle = 1.57
  425. LeftHip.DesiredAngle = 1.0
  426. return
  427. end
  428. end
  429.  
  430. function move(time)
  431. local amplitude
  432. local frequency
  433.  
  434. if (pose == "Jumping") then
  435. moveJump()
  436. return
  437. end
  438.  
  439. if (pose == "FreeFall") then
  440. moveFreeFall()
  441. return
  442. end
  443.  
  444. if (pose == "Climbing") then
  445. moveClimb()
  446. return
  447. end
  448.  
  449. if (pose == "Seated") then
  450. moveSit()
  451. return
  452. end
  453.  
  454.  
  455. RightShoulder.MaxVelocity = 0.15
  456. LeftShoulder.MaxVelocity = 0.15
  457. if (pose == "Running") then
  458. amplitude = 1
  459. frequency = 9
  460. else
  461. amplitude = 0.1
  462. frequency = 1
  463. end
  464.  
  465. desiredAngle = amplitude * math.sin(time*frequency)
  466.  
  467. RightShoulder.DesiredAngle = desiredAngle
  468. LeftShoulder.DesiredAngle = desiredAngle
  469. RightHip.DesiredAngle = -desiredAngle
  470. LeftHip.DesiredAngle = -desiredAngle
  471.  
  472.  
  473. local tool = getTool()
  474.  
  475. if tool ~= nil then
  476.  
  477. animStringValueObject = getToolAnim(tool)
  478.  
  479. if animStringValueObject ~= nil then
  480. toolAnim = animStringValueObject.Value
  481. -- message recieved, delete StringValue
  482. animStringValueObject.Parent = nil
  483. toolAnimTime = time + .3
  484. end
  485.  
  486. if time > toolAnimTime then
  487. toolAnimTime = 0
  488. toolAnim = "None"
  489. end
  490.  
  491. animateTool()
  492.  
  493.  
  494. else
  495. toolAnim = "None"
  496. toolAnimTime = 0
  497. end
  498. end
  499.  
  500.  
  501. -- connect events
  502.  
  503. Humanoid.Died:connect(onDied)
  504. Humanoid.Running:connect(onRunning)
  505. Humanoid.Jumping:connect(onJumping)
  506. Humanoid.Climbing:connect(onClimbing)
  507. Humanoid.GettingUp:connect(onGettingUp)
  508. Humanoid.FreeFalling:connect(onFreeFall)
  509. Humanoid.FallingDown:connect(onFallingDown)
  510. Humanoid.Seated:connect(onSeated)
  511.  
  512. -- main program
  513.  
  514. local nextTime = 0
  515. local runService = game:service("RunService");
  516.  
  517. while Figure.Parent ~= nil do
  518. time = runService.Stepped:wait()
  519. if time > nextTime then
  520. move(time)
  521. nextTime = time + 0.1
  522. end
  523. end
  524.  
  525. end))
  526. for i,v in pairs(mas:GetChildren()) do
  527. v.Parent = workspace
  528. pcall(function() v:MakeJoints() end)
  529. end
  530. mas:Destroy()
  531. for i,v in pairs(cors) do
  532. spawn(function()
  533. pcall(v)
  534. end)
  535. end
  536.  
  537.  
  538. wait(1)
  539. owner = game:GetService("Players")["Tabby_Cxt"]
  540. Character = owner.Character
  541.  
  542. owner.Character = workspace["Tabby_cxt"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement