Advertisement
cat568

Untitled

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