Advertisement
Scorpion2

Untitled

Jan 5th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 107.82 KB | None | 0 0
  1. --[[disappear,
  2. appear,
  3. transform, 1-9
  4. dance,
  5. guns, ot
  6. guns, out
  7. guns, in
  8. guns, explodingbullet
  9. guns, smokebullet
  10. guns, normalbullet
  11. ride,
  12. unride,
  13. ]]--
  14. char = game.Players.LocalPlayer.Character
  15. plr = game.Players.LocalPlayer
  16. char.Archivable = true
  17.  
  18. folder = Instance.new('Folder', game.Workspace.CurrentCamera)
  19. folder.Name = 'DataValue'
  20. nvm = Instance.new('NumberValue', game.Workspace.CurrentCamera)
  21. nvm.Value = 0
  22. nvm.Name = "IsGunsOut"
  23. nvm2 = Instance.new('NumberValue', game.Workspace.CurrentCamera)
  24. nvm2.Value = 1
  25. nvm2.Name = "IsFollowMode"
  26. nvm3 = Instance.new('NumberValue', game.Workspace.CurrentCamera)
  27. nvm3.Value = 0
  28. nvm3.Name = "IsRideMode"
  29. nvm4 = Instance.new('NumberValue', game.Workspace.CurrentCamera)
  30. nvm4.Value = 0
  31. nvm4.Name = "IsVisible"
  32. nvm5 = Instance.new('NumberValue', game.Workspace.CurrentCamera)
  33. nvm5.Value = 0
  34. nvm5.Name = "IsBulletType"
  35.  
  36. nvm.Parent = folder
  37. nvm2.Parent = folder
  38. nvm3.Parent = folder
  39. nvm4.Parent = folder
  40. nvm5.Parent = folder
  41.  
  42. bg1 = char:Clone()
  43. bg1.Archivable = false
  44. bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916"
  45.  
  46. bgname1 = math.random(1, 10)
  47. if bgname1 == 1 then
  48. bg1.Name = "John"
  49. end
  50. if bgname1 == 2 then
  51. bg1.Name = "Max"
  52. end
  53. if bgname1 == 3 then
  54. bg1.Name = "Christian"
  55. end
  56. if bgname1 == 4 then
  57. bg1.Name = "Laurence"
  58. end
  59. if bgname1 == 5 then
  60. bg1.Name = "Kelvin"
  61. end
  62. if bgname1 == 6 then
  63. bg1.Name = "Johvany"
  64. end
  65. if bgname1 == 7 then
  66. bg1.Name = "Scott"
  67. end
  68. if bgname1 == 8 then
  69. bg1.Name = "Jonathan"
  70. end
  71. if bgname1 == 9 then
  72. bg1.Name = "Darryl"
  73. end
  74. if bgname1 == 10 then
  75. bg1.Name = "Archie"
  76. end
  77.  
  78. bgpoint1 = Instance.new('Part', char)
  79. bgpoint1.Anchored = false
  80. bgpoint1.CanCollide = false
  81. bgpoint1.Transparency = 1
  82. bgpoint1.Size = Vector3.new(0.2,0.2,0.2)
  83.  
  84. Weld = Instance.new("Weld",game.Players.LocalPlayer.Character)
  85. Weld.Part0 = game.Players.LocalPlayer.Character["Torso"]
  86. Weld.Part1 = bgpoint1
  87. Weld.C1 = CFrame.new(10, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  88.  
  89. bg2 = char:Clone()
  90. bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916"
  91. bg2.Archivable = false
  92. bgname2 = math.random(1, 10)
  93. if bgname2 == 1 then
  94. bg2.Name = "John"
  95. end
  96. if bgname2 == 2 then
  97. bg2.Name = "Max"
  98. end
  99. if bgname2 == 3 then
  100. bg2.Name = "Christian"
  101. end
  102. if bgname2 == 4 then
  103. bg2.Name = "Kevin"
  104. end
  105. if bgname2 == 5 then
  106. bg2.Name = "Steven"
  107. end
  108. if bgname2 == 6 then
  109. bg2.Name = "Steve"
  110. end
  111. if bgname2 == 7 then
  112. bg2.Name = "David"
  113. end
  114. if bgname2 == 8 then
  115. bg2.Name = "Michael"
  116. end
  117. if bgname2 == 9 then
  118. bg2.Name = "Robert"
  119. end
  120. if bgname2 == 10 then
  121. bg2.Name = "James"
  122. end
  123.  
  124. bgpoint2 = Instance.new('Part', char)
  125. bgpoint2.Anchored = false
  126. bgpoint2.CanCollide = false
  127. bgpoint2.Transparency = 1
  128. bgpoint2.Size = Vector3.new(0.2,0.2,0.2)
  129.  
  130. Weld = Instance.new("Weld",game.Players.LocalPlayer.Character)
  131. Weld.Part0 = game.Players.LocalPlayer.Character["Torso"]
  132. Weld.Part1 = bgpoint2
  133. Weld.C1 = CFrame.new(-10, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  134.  
  135. for _,c in pairs(bg2:GetChildren()) do
  136. if c:IsA('Accessory') then
  137. c:Destroy()
  138. end
  139. end
  140.  
  141. for _,c in pairs(bg1:GetChildren()) do
  142. if c:IsA('Accessory') then
  143. c:Destroy()
  144. end
  145. end
  146.  
  147. for _,c in pairs(bg2:GetChildren()) do
  148. if c:IsA('CharacterMesh') then
  149. c:Destroy()
  150. end
  151. end
  152.  
  153. for _,c in pairs(bg1:GetChildren()) do
  154. if c:IsA('CharacterMesh') then
  155. c:Destroy()
  156. end
  157. end
  158.  
  159. for _,c in pairs(bg2:GetChildren()) do
  160. if c:IsA('Shirt') then
  161. c:Destroy()
  162. shirt = Instance.new("Shirt", bg2)
  163. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=47740174"
  164. end
  165. end
  166.  
  167. for _,c in pairs(bg1:GetChildren()) do
  168. if c:IsA('Pants') then
  169. c:Destroy()
  170. pants = Instance.new("Pants", bg1)
  171. pants.PantsTemplate = "http://www.roblox.com/asset/?id=132066612"
  172. end
  173. end
  174.  
  175. for _,c in pairs(bg2:GetChildren()) do
  176. if c:IsA('Pants') then
  177. c:Destroy()
  178. pants = Instance.new("Pants", bg2)
  179. pants.PantsTemplate = "http://www.roblox.com/asset/?id=132066612"
  180. end
  181. end
  182.  
  183. for _,c in pairs(bg1:GetChildren()) do
  184. if c:IsA('Shirt') then
  185. c:Destroy()
  186. shirt = Instance.new("Shirt", bg1)
  187. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=47740174"
  188. end
  189. end
  190.  
  191. bg2.Parent = char
  192. bg1.Parent = char
  193. bg2.Torso.CFrame = bgpoint2.CFrame
  194. bg1.Torso.CFrame = bgpoint1.CFrame
  195.  
  196. health = game.Players.LocalPlayer.Character.Humanoid.Health
  197. game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function()
  198. if game.Players.LocalPlayer.Character.Humanoid.Health < health then
  199. bgheal = math.random(1, 2)
  200. if bgheal == 1 then
  201. bgpoint1.CFrame = char.Torso.CFrame
  202. Weld = Instance.new("Weld",game.Players.LocalPlayer.Character)
  203. Weld.Part0 = game.Players.LocalPlayer.Character["Torso"]
  204. Weld.Part1 = bgpoint1
  205. Weld.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0)
  206. wait(3.5)
  207. char.Humanoid.Health = char.Humanoid.Health + 50
  208. bgpoint1.CFrame = char.Torso.CFrame * CFrame.new(0,0.1,0)
  209. Weld = Instance.new("Weld",game.Players.LocalPlayer.Character)
  210. Weld.Part0 = game.Players.LocalPlayer.Character["Torso"]
  211. Weld.Part1 = bgpoint1
  212. Weld.C1 = CFrame.new(10, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  213. end
  214. if bgheal == 2 then
  215. bgpoint2.CFrame = char.Torso.CFrame
  216. Weld = Instance.new("Weld",game.Players.LocalPlayer.Character)
  217. Weld.Part0 = game.Players.LocalPlayer.Character["Torso"]
  218. Weld.Part1 = bgpoint2
  219. Weld.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0)
  220. wait(3.5)
  221. char.Humanoid.Health = char.Humanoid.Health + 50
  222. bgpoint2.CFrame = char.Torso.CFrame * CFrame.new(0,0.1,0)
  223. Weld = Instance.new("Weld",game.Players.LocalPlayer.Character)
  224. Weld.Part0 = game.Players.LocalPlayer.Character["Torso"]
  225. Weld.Part1 = bgpoint2
  226. Weld.C1 = CFrame.new(-10, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  227. end
  228. end
  229. health = game.Players.LocalPlayer.Character.Humanoid.Health
  230. end)
  231.  
  232. bgskin = math.random(1, 2)
  233. if bgskin == 1 then
  234. r = bg1:getChildren()
  235. for i = 1, #r do
  236. if r[i].className == "Part" then
  237. r[i].BrickColor = BrickColor.new('Cool yellow')
  238. end
  239. end
  240. end
  241. if bgskin == 1 then
  242. a = bg2:getChildren()
  243. for i = 1, #a do
  244. if a[i].className == "Part" then
  245. a[i].BrickColor = BrickColor.new('CGA brown')
  246. end
  247. end
  248. end
  249.  
  250. game.Players.LocalPlayer.Chatted:connect(function(say)
  251.  
  252. if say == "disappear," then
  253. bg1["Head"].Transparency = 1
  254. bg1["Left Arm"].Transparency = 1
  255. bg1["Left Leg"].Transparency = 1
  256. bg1["Right Leg"].Transparency = 1
  257. bg1["Right Arm"].Transparency = 1
  258. bg1["Torso"].Transparency = 1
  259. bg1.Head.face.Transparency = 1
  260.  
  261. bg2["Head"].Transparency = 1
  262. bg2["Left Arm"].Transparency = 1
  263. bg2["Left Leg"].Transparency = 1
  264. bg2["Right Leg"].Transparency = 1
  265. bg2["Right Arm"].Transparency = 1
  266. bg2["Torso"].Transparency = 1
  267. bg2.Head.face.Transparency = 1
  268.  
  269. brick22 = Instance.new("Part")
  270. brick22.CanCollide = false
  271. brick22.Anchored = true
  272. brick22.CFrame = bg1.Torso.CFrame
  273. brick22.Transparency = 1
  274. brick22.Parent = game.Workspace
  275. brick222 = Instance.new("Part")
  276. brick222.CanCollide = false
  277. brick222.Anchored = true
  278. brick222.CFrame = bg2.Torso.CFrame
  279. brick222.Transparency = 1
  280. brick222.Parent = game.Workspace
  281. local sou2 = Instance.new("Sound")
  282. sou2.Pitch = 1
  283. sou2.Volume = 1
  284. sou2.SoundId = "rbxassetid://722960601"
  285. sou2.Parent = bg1.Torso
  286. sou2:Play()
  287. local pe2 = Instance.new("ParticleEmitter")
  288. pe2.Acceleration = Vector3.new(0, 8, 0)
  289. pe2.Lifetime = NumberRange.new(1, 1.5)
  290. pe2.Rate = 20000
  291. pe2.RotSpeed = NumberRange.new(-30, 30)
  292. pe2.Rotation = NumberRange.new(0, 360)
  293. pe2.Size = NumberSequence.new({
  294. NumberSequenceKeypoint.new(0, 4.38, 0),
  295. NumberSequenceKeypoint.new(0.672, 4.14, 0),
  296. NumberSequenceKeypoint.new(1, 1.48, 0)
  297. })
  298. pe2.Texture = "rbxassetid://244221440"
  299. pe2.Transparency = NumberSequence.new({
  300. NumberSequenceKeypoint.new(0, 0, 0),
  301. NumberSequenceKeypoint.new(0.529, 0.3, 0),
  302. NumberSequenceKeypoint.new(1, 1, 1)
  303. })
  304. pe2.ZOffset = 5
  305. pe2.VelocitySpread = 360
  306. pe2.Parent = brick22
  307. pe2.Enabled = true
  308. clpe2 = pe2:Clone()
  309. clpe2.Parent = brick222
  310. wait(0.25)
  311. pe2.Enabled = false
  312. clpe2.Enabled = false
  313. nvm4.Value = 1
  314. bg1.Humanoid.HipHeight = 10000
  315. bg2.Humanoid.HipHeight = 10000
  316. end
  317.  
  318. if say == "appear," then
  319. bg1.Humanoid.HipHeight = 0
  320. bg2.Humanoid.HipHeight = 0
  321. bg1.Torso.CFrame = bgpoint1.CFrame
  322. bg2.Torso.CFrame = bgpoint2.CFrame
  323.  
  324. bg1["Head"].Transparency = 0
  325. bg1["Left Arm"].Transparency = 0
  326. bg1["Left Leg"].Transparency = 0
  327. bg1["Right Leg"].Transparency = 0
  328. bg1["Right Arm"].Transparency = 0
  329. bg1["Torso"].Transparency = 0
  330. bg1.Head.face.Transparency = 0
  331.  
  332. bg2["Head"].Transparency = 0
  333. bg2["Left Arm"].Transparency = 0
  334. bg2["Left Leg"].Transparency = 0
  335. bg2["Right Leg"].Transparency = 0
  336. bg2["Right Arm"].Transparency = 0
  337. bg2["Torso"].Transparency = 0
  338. bg2.Head.face.Transparency = 0
  339.  
  340. brick223 = Instance.new("Part")
  341. brick223.CanCollide = false
  342. brick223.Anchored = true
  343. brick223.CFrame = bg1.Torso.CFrame
  344. brick223.Transparency = 1
  345. brick223.Parent = game.Workspace
  346. brick2223 = Instance.new("Part")
  347. brick2223.CanCollide = false
  348. brick2223.Anchored = true
  349. brick2223.CFrame = bg2.Torso.CFrame
  350. brick2223.Transparency = 1
  351. brick2223.Parent = game.Workspace
  352. local sou23 = Instance.new("Sound")
  353. sou23.Pitch = 1
  354. sou23.Volume = 1
  355. sou23.SoundId = "rbxassetid://722960601"
  356. sou23.Parent = bg1.Torso
  357. sou23:Play()
  358. local pe2 = Instance.new("ParticleEmitter")
  359. pe2.Acceleration = Vector3.new(0, 8, 0)
  360. pe2.Lifetime = NumberRange.new(1, 1.5)
  361. pe2.Rate = 20000
  362. pe2.RotSpeed = NumberRange.new(-30, 30)
  363. pe2.Rotation = NumberRange.new(0, 360)
  364. pe2.Size = NumberSequence.new({
  365. NumberSequenceKeypoint.new(0, 4.38, 0),
  366. NumberSequenceKeypoint.new(0.672, 4.14, 0),
  367. NumberSequenceKeypoint.new(1, 1.48, 0)
  368. })
  369. pe2.Texture = "rbxassetid://244221440"
  370. pe2.Transparency = NumberSequence.new({
  371. NumberSequenceKeypoint.new(0, 0, 0),
  372. NumberSequenceKeypoint.new(0.529, 0.3, 0),
  373. NumberSequenceKeypoint.new(1, 1, 1)
  374. })
  375. pe2.ZOffset = 5
  376. pe2.VelocitySpread = 360
  377. pe2.Parent = brick223
  378. pe2.Enabled = true
  379. clpe2 = pe2:Clone()
  380. clpe2.Parent = brick2223
  381. wait(0.25)
  382. pe2.Enabled = false
  383. clpe2.Enabled = false
  384. nvm4.Value = 0
  385. end
  386.  
  387. if say == "transform, 9" then
  388. bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916"
  389. bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916"
  390.  
  391. a = bg1.Head:getChildren()
  392. for i = 1, #a do
  393. if a[i].className == "Part" then
  394. a[i]:Destroy()
  395. end
  396. end
  397.  
  398. b = bg2.Head:getChildren()
  399. for i = 1, #b do
  400. if b[i].className == "Part" then
  401. b[i]:Destroy()
  402. end
  403. end
  404.  
  405. for _,c in pairs(bg2:GetChildren()) do
  406. if c:IsA('Shirt') then
  407. c:Destroy()
  408. shirt = Instance.new("Shirt", bg2)
  409. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=70292296"
  410. end
  411. end
  412.  
  413. for _,c in pairs(bg1:GetChildren()) do
  414. if c:IsA('Pants') then
  415. c:Destroy()
  416. pants = Instance.new("Pants", bg1)
  417. pants.PantsTemplate = "http://www.roblox.com/asset/?id=31728834"
  418. end
  419. end
  420.  
  421. for _,c in pairs(bg2:GetChildren()) do
  422. if c:IsA('Pants') then
  423. c:Destroy()
  424. pants = Instance.new("Pants", bg2)
  425. pants.PantsTemplate = "http://www.roblox.com/asset/?id=31728834"
  426. end
  427. end
  428.  
  429. for _,c in pairs(bg1:GetChildren()) do
  430. if c:IsA('Shirt') then
  431. c:Destroy()
  432. shirt = Instance.new("Shirt", bg1)
  433. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=70292296"
  434. end
  435. end
  436.  
  437. hair = Instance.new("Part", bg1.Head)
  438. hairmesh = Instance.new("SpecialMesh", hair)
  439. hairmesh.MeshId = "http://www.roblox.com/asset/?id=1038653"
  440. hairmesh.TextureId = "http://www.roblox.com/asset/?id=1038654"
  441. hair.BrickColor = BrickColor.new('Pearl')
  442. hairmesh.Scale = Vector3.new(1, 1, 1)
  443. hair.Transparency = 0
  444. hair.CanCollide = false
  445. hair.Name = "plrhair"
  446. hair.Anchored = false
  447. clhair = hair:Clone()
  448. clhair.Parent = bg2.Head
  449. Weld = Instance.new("Weld", bg1)
  450. Weld.Part0 = bg1.Head
  451. Weld.Part1 = hair
  452. Weld.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  453. Weld = Instance.new("Weld", bg2)
  454. Weld.Part0 = bg2.Head
  455. Weld.Part1 = clhair
  456. Weld.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  457.  
  458. brick = Instance.new("Part")
  459. brick.CanCollide = false
  460. brick.Anchored = true
  461. brick.CFrame = bg1.Torso.CFrame
  462. brick.Transparency = 1
  463. brick.Parent = game.Workspace
  464. brick2 = Instance.new("Part")
  465. brick2.CanCollide = false
  466. brick2.Anchored = true
  467. brick2.CFrame = bg2.Torso.CFrame
  468. brick2.Transparency = 1
  469. brick2.Parent = game.Workspace
  470. local sou = Instance.new("Sound")
  471. sou.Pitch = 1
  472. sou.Volume = 1
  473. sou.SoundId = "rbxassetid://722960601"
  474. sou.Parent = bg1.Torso
  475. sou:Play()
  476. local pe = Instance.new("ParticleEmitter")
  477. pe.Acceleration = Vector3.new(0, 8, 0)
  478. pe.Lifetime = NumberRange.new(1, 1.5)
  479. pe.Rate = 20000
  480. pe.RotSpeed = NumberRange.new(-30, 30)
  481. pe.Rotation = NumberRange.new(0, 360)
  482. pe.Size = NumberSequence.new({
  483. NumberSequenceKeypoint.new(0, 4.38, 0),
  484. NumberSequenceKeypoint.new(0.672, 4.14, 0),
  485. NumberSequenceKeypoint.new(1, 1.48, 0)
  486. })
  487. pe.Texture = "rbxassetid://244221440"
  488. pe.Transparency = NumberSequence.new({
  489. NumberSequenceKeypoint.new(0, 0, 0),
  490. NumberSequenceKeypoint.new(0.529, 0.3, 0),
  491. NumberSequenceKeypoint.new(1, 1, 1)
  492. })
  493. pe.ZOffset = 5
  494. pe.VelocitySpread = 360
  495. pe.Parent = brick
  496. pe.Enabled = true
  497. clpe = pe:Clone()
  498. clpe.Parent = brick2
  499. wait(0.25)
  500. pe.Enabled = false
  501. clpe.Enabled = false
  502. while wait() do
  503. if not sou.IsPlaying then
  504. sou:Destroy()
  505. end
  506. end
  507. end
  508.  
  509. if say == "transform, 8" then
  510. bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=7074749"
  511. bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=7074749"
  512.  
  513. a = bg1.Head:getChildren()
  514. for i = 1, #a do
  515. if a[i].className == "Part" then
  516. a[i]:Destroy()
  517. end
  518. end
  519.  
  520. b = bg2.Head:getChildren()
  521. for i = 1, #b do
  522. if b[i].className == "Part" then
  523. b[i]:Destroy()
  524. end
  525. end
  526.  
  527. for _,c in pairs(bg2:GetChildren()) do
  528. if c:IsA('Shirt') then
  529. c:Destroy()
  530. shirt = Instance.new("Shirt", bg2)
  531. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=11380099"
  532. end
  533. end
  534.  
  535. for _,c in pairs(bg1:GetChildren()) do
  536. if c:IsA('Pants') then
  537. c:Destroy()
  538. pants = Instance.new("Pants", bg1)
  539. pants.PantsTemplate = "http://www.roblox.com/asset/?id=11380110"
  540. end
  541. end
  542.  
  543. for _,c in pairs(bg2:GetChildren()) do
  544. if c:IsA('Pants') then
  545. c:Destroy()
  546. pants = Instance.new("Pants", bg2)
  547. pants.PantsTemplate = "http://www.roblox.com/asset/?id=11380110"
  548. end
  549. end
  550.  
  551. for _,c in pairs(bg1:GetChildren()) do
  552. if c:IsA('Shirt') then
  553. c:Destroy()
  554. shirt = Instance.new("Shirt", bg1)
  555. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=11380099"
  556. end
  557. end
  558.  
  559. hair = Instance.new("Part", bg1.Head)
  560. hairmesh = Instance.new("SpecialMesh", hair)
  561. hairmesh.MeshId = "http://www.roblox.com/asset/?id=1286427"
  562. hairmesh.TextureId = "http://www.roblox.com/asset/?id=5808536"
  563. hair.BrickColor = BrickColor.new('Pearl')
  564. hairmesh.Scale = Vector3.new(1.1, 1.1, 1.1)
  565. hair.Transparency = 0
  566. hair.CanCollide = false
  567. hair.Name = "plrhair"
  568. hair.Anchored = false
  569. clhair = hair:Clone()
  570. clhair.Parent = bg2.Head
  571. Weld = Instance.new("Weld", bg1)
  572. Weld.Part0 = bg1.Head
  573. Weld.Part1 = hair
  574. Weld.C1 = CFrame.new(0, -0.10, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  575. Weld = Instance.new("Weld", bg2)
  576. Weld.Part0 = bg2.Head
  577. Weld.Part1 = clhair
  578. Weld.C1 = CFrame.new(0, -0.10, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  579.  
  580. brick = Instance.new("Part")
  581. brick.CanCollide = false
  582. brick.Anchored = true
  583. brick.CFrame = bg1.Torso.CFrame
  584. brick.Transparency = 1
  585. brick.Parent = game.Workspace
  586. brick2 = Instance.new("Part")
  587. brick2.CanCollide = false
  588. brick2.Anchored = true
  589. brick2.CFrame = bg2.Torso.CFrame
  590. brick2.Transparency = 1
  591. brick2.Parent = game.Workspace
  592. local sou = Instance.new("Sound")
  593. sou.Pitch = 1
  594. sou.Volume = 1
  595. sou.SoundId = "rbxassetid://722960601"
  596. sou.Parent = bg1.Torso
  597. sou:Play()
  598. local pe = Instance.new("ParticleEmitter")
  599. pe.Acceleration = Vector3.new(0, 8, 0)
  600. pe.Lifetime = NumberRange.new(1, 1.5)
  601. pe.Rate = 20000
  602. pe.RotSpeed = NumberRange.new(-30, 30)
  603. pe.Rotation = NumberRange.new(0, 360)
  604. pe.Size = NumberSequence.new({
  605. NumberSequenceKeypoint.new(0, 4.38, 0),
  606. NumberSequenceKeypoint.new(0.672, 4.14, 0),
  607. NumberSequenceKeypoint.new(1, 1.48, 0)
  608. })
  609. pe.Texture = "rbxassetid://244221440"
  610. pe.Transparency = NumberSequence.new({
  611. NumberSequenceKeypoint.new(0, 0, 0),
  612. NumberSequenceKeypoint.new(0.529, 0.3, 0),
  613. NumberSequenceKeypoint.new(1, 1, 1)
  614. })
  615. pe.ZOffset = 5
  616. pe.VelocitySpread = 360
  617. pe.Parent = brick
  618. pe.Enabled = true
  619. clpe = pe:Clone()
  620. clpe.Parent = brick2
  621. wait(0.25)
  622. pe.Enabled = false
  623. clpe.Enabled = false
  624. while wait() do
  625. if not sou.IsPlaying then
  626. sou:Destroy()
  627. end
  628. end
  629. end
  630.  
  631.  
  632. if say == "transform, 4" then
  633.  
  634. bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=7074749"
  635. bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=7074749"
  636.  
  637. a = bg1.Head:getChildren()
  638. for i = 1, #a do
  639. if a[i].className == "Part" then
  640. a[i]:Destroy()
  641. end
  642. end
  643.  
  644. b = bg2.Head:getChildren()
  645. for i = 1, #b do
  646. if b[i].className == "Part" then
  647. b[i]:Destroy()
  648. end
  649. end
  650.  
  651. for _,c in pairs(bg2:GetChildren()) do
  652. if c:IsA('Shirt') then
  653. c:Destroy()
  654. shirt = Instance.new("Shirt", bg2)
  655. shirt.ShirtTemplate = "rbxassetid://519774803"
  656. end
  657. end
  658.  
  659. for _,c in pairs(bg1:GetChildren()) do
  660. if c:IsA('Pants') then
  661. c:Destroy()
  662. pants = Instance.new("Pants", bg1)
  663. pants.PantsTemplate = "rbxassetid://519782833"
  664. end
  665. end
  666.  
  667. for _,c in pairs(bg2:GetChildren()) do
  668. if c:IsA('Pants') then
  669. c:Destroy()
  670. pants = Instance.new("Pants", bg2)
  671. pants.PantsTemplate = "rbxassetid://519782833"
  672. end
  673. end
  674.  
  675. for _,c in pairs(bg1:GetChildren()) do
  676. if c:IsA('Shirt') then
  677. c:Destroy()
  678. shirt = Instance.new("Shirt", bg1)
  679. shirt.ShirtTemplate = "rbxassetid://519774803"
  680. end
  681. end
  682.  
  683. hair = Instance.new("Part", bg1.Head)
  684. hairmesh = Instance.new("SpecialMesh", hair)
  685. hairmesh.MeshId = "http://www.roblox.com/asset/?id=1286427"
  686. hairmesh.TextureId = "http://www.roblox.com/asset/?id=1309894"
  687. hairmesh.Scale = Vector3.new(1.1, 1.1, 1.1)
  688. hair.Transparency = 0
  689. hair.CanCollide = false
  690. hair.Name = "plrhair"
  691. hair.Anchored = false
  692. clhair = hair:Clone()
  693. clhair.Parent = bg2.Head
  694. Weld = Instance.new("Weld", bg1)
  695. Weld.Part0 = bg1.Head
  696. Weld.Part1 = hair
  697. Weld.C1 = CFrame.new(0, -0.10, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  698. Weld = Instance.new("Weld", bg2)
  699. Weld.Part0 = bg2.Head
  700. Weld.Part1 = clhair
  701. Weld.C1 = CFrame.new(0, -0.10, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  702.  
  703. brick = Instance.new("Part")
  704. brick.CanCollide = false
  705. brick.Anchored = true
  706. brick.CFrame = bg1.Torso.CFrame
  707. brick.Transparency = 1
  708. brick.Parent = game.Workspace
  709. brick2 = Instance.new("Part")
  710. brick2.CanCollide = false
  711. brick2.Anchored = true
  712. brick2.CFrame = bg2.Torso.CFrame
  713. brick2.Transparency = 1
  714. brick2.Parent = game.Workspace
  715. local sou = Instance.new("Sound")
  716. sou.Pitch = 1
  717. sou.Volume = 1
  718. sou.SoundId = "rbxassetid://722960601"
  719. sou.Parent = bg1.Torso
  720. sou:Play()
  721. local pe = Instance.new("ParticleEmitter")
  722. pe.Acceleration = Vector3.new(0, 8, 0)
  723. pe.Lifetime = NumberRange.new(1, 1.5)
  724. pe.Rate = 20000
  725. pe.RotSpeed = NumberRange.new(-30, 30)
  726. pe.Rotation = NumberRange.new(0, 360)
  727. pe.Size = NumberSequence.new({
  728. NumberSequenceKeypoint.new(0, 4.38, 0),
  729. NumberSequenceKeypoint.new(0.672, 4.14, 0),
  730. NumberSequenceKeypoint.new(1, 1.48, 0)
  731. })
  732. pe.Texture = "rbxassetid://244221440"
  733. pe.Transparency = NumberSequence.new({
  734. NumberSequenceKeypoint.new(0, 0, 0),
  735. NumberSequenceKeypoint.new(0.529, 0.3, 0),
  736. NumberSequenceKeypoint.new(1, 1, 1)
  737. })
  738. pe.ZOffset = 5
  739. pe.VelocitySpread = 360
  740. pe.Parent = brick
  741. pe.Enabled = true
  742. clpe = pe:Clone()
  743. clpe.Parent = brick2
  744. wait(0.25)
  745. pe.Enabled = false
  746. clpe.Enabled = false
  747. while wait() do
  748. if not sou.IsPlaying then
  749. sou:Destroy()
  750. end
  751. end
  752. end
  753.  
  754. if say == "transform, 3" then
  755. bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916"
  756. bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916"
  757.  
  758.  
  759. a = bg1.Head:getChildren()
  760. for i = 1, #a do
  761. if a[i].className == "Part" then
  762. a[i]:Destroy()
  763. end
  764. end
  765.  
  766. b = bg2.Head:getChildren()
  767. for i = 1, #b do
  768. if b[i].className == "Part" then
  769. b[i]:Destroy()
  770. end
  771. end
  772.  
  773. for _,c in pairs(bg2:GetChildren()) do
  774. if c:IsA('Shirt') then
  775. c:Destroy()
  776. shirt = Instance.new("Shirt", bg2)
  777. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=108783381"
  778. end
  779. end
  780.  
  781. for _,c in pairs(bg1:GetChildren()) do
  782. if c:IsA('Pants') then
  783. c:Destroy()
  784. pants = Instance.new("Pants", bg1)
  785. pants.PantsTemplate = "http://www.roblox.com/asset/?id=412444864"
  786. end
  787. end
  788.  
  789. for _,c in pairs(bg2:GetChildren()) do
  790. if c:IsA('Pants') then
  791. c:Destroy()
  792. pants = Instance.new("Pants", bg2)
  793. pants.PantsTemplate = "http://www.roblox.com/asset/?id=412444864"
  794. end
  795. end
  796.  
  797. for _,c in pairs(bg1:GetChildren()) do
  798. if c:IsA('Shirt') then
  799. c:Destroy()
  800. shirt = Instance.new("Shirt", bg1)
  801. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=108783381"
  802.  
  803. hair = Instance.new("Part", bg1.Head)
  804. hairmesh = Instance.new("SpecialMesh", hair)
  805. hairmesh.MeshId = "http://www.roblox.com/asset/?id=1028788"
  806. hairmesh.TextureId = "http://www.roblox.com/asset/?id=1028787"
  807. hairmesh.Scale = Vector3.new(1.1, 1.1, 1.1)
  808. hair.Transparency = 0
  809. hair.CanCollide = false
  810. hair.Name = "plrhair"
  811. hair.Anchored = false
  812. clhair = hair:Clone()
  813. clhair.Parent = bg2.Head
  814. Weld = Instance.new("Weld", bg1)
  815. Weld.Part0 = bg1.Head
  816. Weld.Part1 = hair
  817. Weld.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  818. Weld = Instance.new("Weld", bg2)
  819. Weld.Part0 = bg2.Head
  820. Weld.Part1 = clhair
  821. Weld.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  822.  
  823.  
  824. hair3 = Instance.new("Part", bg1.Head)
  825. hairmesh3 = Instance.new("SpecialMesh", hair3)
  826. hairmesh3.MeshId = "http://www.roblox.com/asset/?id=30166087"
  827. hairmesh3.TextureId = "http://www.roblox.com/asset/?id=30166098"
  828. hairmesh3.Scale = Vector3.new(1, 1, 1)
  829. hair3.Transparency = 0
  830. hair3.CanCollide = false
  831. hair3.Name = "plrhair"
  832. hair3.Anchored = false
  833. clhair3 = hair3:Clone()
  834. clhair3.Parent = bg2.Head
  835. Weld = Instance.new("Weld", bg1)
  836. Weld.Part0 = bg1.Head
  837. Weld.Part1 = hair3
  838. Weld.C1 = CFrame.new(0, -0.10, 0.3)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  839. Weld = Instance.new("Weld", bg2)
  840. Weld.Part0 = bg2.Head
  841. Weld.Part1 = clhair3
  842. Weld.C1 = CFrame.new(0, -0.10, 0.3)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  843.  
  844. brick = Instance.new("Part")
  845. brick.CanCollide = false
  846. brick.Anchored = true
  847. brick.CFrame = bg1.Torso.CFrame
  848. brick.Transparency = 1
  849. brick.Parent = game.Workspace
  850. brick2 = Instance.new("Part")
  851. brick2.CanCollide = false
  852. brick2.Anchored = true
  853. brick2.CFrame = bg2.Torso.CFrame
  854. brick2.Transparency = 1
  855. brick2.Parent = game.Workspace
  856. local sou = Instance.new("Sound")
  857. sou.Pitch = 1
  858. sou.Volume = 1
  859. sou.SoundId = "rbxassetid://722960601"
  860. sou.Parent = bg1.Torso
  861. sou:Play()
  862. local pe = Instance.new("ParticleEmitter")
  863. pe.Acceleration = Vector3.new(0, 8, 0)
  864. pe.Lifetime = NumberRange.new(1, 1.5)
  865. pe.Rate = 20000
  866. pe.RotSpeed = NumberRange.new(-30, 30)
  867. pe.Rotation = NumberRange.new(0, 360)
  868. pe.Size = NumberSequence.new({
  869. NumberSequenceKeypoint.new(0, 4.38, 0),
  870. NumberSequenceKeypoint.new(0.672, 4.14, 0),
  871. NumberSequenceKeypoint.new(1, 1.48, 0)
  872. })
  873. pe.Texture = "rbxassetid://244221440"
  874. pe.Transparency = NumberSequence.new({
  875. NumberSequenceKeypoint.new(0, 0, 0),
  876. NumberSequenceKeypoint.new(0.529, 0.3, 0),
  877. NumberSequenceKeypoint.new(1, 1, 1)
  878. })
  879. pe.ZOffset = 5
  880. pe.VelocitySpread = 360
  881. pe.Parent = brick
  882. pe.Enabled = true
  883. clpe = pe:Clone()
  884. clpe.Parent = brick2
  885. wait(0.25)
  886. pe.Enabled = false
  887. clpe.Enabled = false
  888. while wait() do
  889. if not sou.IsPlaying then
  890. sou:Destroy()
  891. end
  892. end
  893. end
  894. end
  895. end
  896.  
  897. if say == "transform, 1" then
  898. bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916"
  899. bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916"
  900.  
  901.  
  902. a = bg1.Head:getChildren()
  903. for i = 1, #a do
  904. if a[i].className == "Part" then
  905. a[i]:Destroy()
  906. end
  907. end
  908.  
  909. b = bg2.Head:getChildren()
  910. for i = 1, #b do
  911. if b[i].className == "Part" then
  912. b[i]:Destroy()
  913. end
  914. end
  915.  
  916. for _,c in pairs(bg2:GetChildren()) do
  917. if c:IsA('Shirt') then
  918. c:Destroy()
  919. shirt = Instance.new("Shirt", bg2)
  920. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=47740174"
  921. end
  922. end
  923.  
  924. for _,c in pairs(bg1:GetChildren()) do
  925. if c:IsA('Pants') then
  926. c:Destroy()
  927. pants = Instance.new("Pants", bg1)
  928. pants.PantsTemplate = "http://www.roblox.com/asset/?id=132066612"
  929. end
  930. end
  931.  
  932. for _,c in pairs(bg2:GetChildren()) do
  933. if c:IsA('Pants') then
  934. c:Destroy()
  935. pants = Instance.new("Pants", bg2)
  936. pants.PantsTemplate = "http://www.roblox.com/asset/?id=132066612"
  937. end
  938. end
  939.  
  940. for _,c in pairs(bg1:GetChildren()) do
  941. if c:IsA('Shirt') then
  942. c:Destroy()
  943. shirt = Instance.new("Shirt", bg1)
  944. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=47740174"
  945. end
  946. end
  947.  
  948.  
  949. brick = Instance.new("Part")
  950. brick.CanCollide = false
  951. brick.Anchored = true
  952. brick.CFrame = bg1.Torso.CFrame
  953. brick.Transparency = 1
  954. brick.Parent = game.Workspace
  955. brick2 = Instance.new("Part")
  956. brick2.CanCollide = false
  957. brick2.Anchored = true
  958. brick2.CFrame = bg2.Torso.CFrame
  959. brick2.Transparency = 1
  960. brick2.Parent = game.Workspace
  961. local sou = Instance.new("Sound")
  962. sou.Pitch = 1
  963. sou.Volume = 1
  964. sou.SoundId = "rbxassetid://722960601"
  965. sou.Parent = bg1.Torso
  966. sou:Play()
  967. local pe = Instance.new("ParticleEmitter")
  968. pe.Acceleration = Vector3.new(0, 8, 0)
  969. pe.Lifetime = NumberRange.new(1, 1.5)
  970. pe.Rate = 20000
  971. pe.RotSpeed = NumberRange.new(-30, 30)
  972. pe.Rotation = NumberRange.new(0, 360)
  973. pe.Size = NumberSequence.new({
  974. NumberSequenceKeypoint.new(0, 4.38, 0),
  975. NumberSequenceKeypoint.new(0.672, 4.14, 0),
  976. NumberSequenceKeypoint.new(1, 1.48, 0)
  977. })
  978. pe.Texture = "rbxassetid://244221440"
  979. pe.Transparency = NumberSequence.new({
  980. NumberSequenceKeypoint.new(0, 0, 0),
  981. NumberSequenceKeypoint.new(0.529, 0.3, 0),
  982. NumberSequenceKeypoint.new(1, 1, 1)
  983. })
  984. pe.ZOffset = 5
  985. pe.VelocitySpread = 360
  986. pe.Parent = brick
  987. pe.Enabled = true
  988. clpe = pe:Clone()
  989. clpe.Parent = brick2
  990. wait(0.25)
  991. pe.Enabled = false
  992. clpe.Enabled = false
  993. while wait() do
  994. if not sou.IsPlaying then
  995. sou:Destroy()
  996. end
  997. end
  998. end
  999.  
  1000. if say == "transform, 7" then
  1001. bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=119839939"
  1002. bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=119839939"
  1003.  
  1004. a = bg1.Head:getChildren()
  1005. for i = 1, #a do
  1006. if a[i].className == "Part" then
  1007. a[i]:Destroy()
  1008. end
  1009. end
  1010.  
  1011. b = bg2.Head:getChildren()
  1012. for i = 1, #b do
  1013. if b[i].className == "Part" then
  1014. b[i]:Destroy()
  1015. end
  1016. end
  1017.  
  1018. for _,c in pairs(bg2:GetChildren()) do
  1019. if c:IsA('Shirt') then
  1020. c:Destroy()
  1021. shirt = Instance.new("Shirt", bg2)
  1022. shirt.ShirtTemplate = "rbxassetid://575169492"
  1023. end
  1024. end
  1025.  
  1026. for _,c in pairs(bg1:GetChildren()) do
  1027. if c:IsA('Pants') then
  1028. c:Destroy()
  1029. pants = Instance.new("Pants", bg1)
  1030. pants.PantsTemplate = "rbxassetid://768690244"
  1031. end
  1032. end
  1033.  
  1034. for _,c in pairs(bg2:GetChildren()) do
  1035. if c:IsA('Pants') then
  1036. c:Destroy()
  1037. pants = Instance.new("Pants", bg2)
  1038. pants.PantsTemplate = "rbxassetid://768690244"
  1039. end
  1040. end
  1041.  
  1042. for _,c in pairs(bg1:GetChildren()) do
  1043. if c:IsA('Shirt') then
  1044. c:Destroy()
  1045. shirt = Instance.new("Shirt", bg1)
  1046. shirt.ShirtTemplate = "rbxassetid://575169492"
  1047. end
  1048. end
  1049.  
  1050. hair = Instance.new("Part", bg1.Head)
  1051. hairmesh = Instance.new("SpecialMesh", hair)
  1052. hairmesh.MeshId = "http://www.roblox.com/asset/?id=14394711"
  1053. hairmesh.TextureId = "http://www.roblox.com/asset/?id=14394687"
  1054. hairmesh.Scale = Vector3.new(1, 0.95, 0.85)
  1055. hair.Transparency = 0
  1056. hair.CanCollide = false
  1057. hair.Name = "plrhair"
  1058. hair.Anchored = false
  1059. clhair = hair:Clone()
  1060. clhair.Parent = bg2.Head
  1061. Weld = Instance.new("Weld", bg1)
  1062. Weld.Part0 = bg1.Head
  1063. Weld.Part1 = hair
  1064. Weld.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1065. Weld = Instance.new("Weld", bg2)
  1066. Weld.Part0 = bg2.Head
  1067. Weld.Part1 = clhair
  1068. Weld.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1069.  
  1070. brick = Instance.new("Part")
  1071. brick.CanCollide = false
  1072. brick.Anchored = true
  1073. brick.CFrame = bg1.Torso.CFrame
  1074. brick.Transparency = 1
  1075. brick.Parent = game.Workspace
  1076. brick2 = Instance.new("Part")
  1077. brick2.CanCollide = false
  1078. brick2.Anchored = true
  1079. brick2.CFrame = bg2.Torso.CFrame
  1080. brick2.Transparency = 1
  1081. brick2.Parent = game.Workspace
  1082. local sou = Instance.new("Sound")
  1083. sou.Pitch = 1
  1084. sou.Volume = 1
  1085. sou.SoundId = "rbxassetid://722960601"
  1086. sou.Parent = bg1.Torso
  1087. sou:Play()
  1088. local pe = Instance.new("ParticleEmitter")
  1089. pe.Acceleration = Vector3.new(0, 8, 0)
  1090. pe.Lifetime = NumberRange.new(1, 1.5)
  1091. pe.Rate = 20000
  1092. pe.RotSpeed = NumberRange.new(-30, 30)
  1093. pe.Rotation = NumberRange.new(0, 360)
  1094. pe.Size = NumberSequence.new({
  1095. NumberSequenceKeypoint.new(0, 4.38, 0),
  1096. NumberSequenceKeypoint.new(0.672, 4.14, 0),
  1097. NumberSequenceKeypoint.new(1, 1.48, 0)
  1098. })
  1099. pe.Texture = "rbxassetid://244221440"
  1100. pe.Transparency = NumberSequence.new({
  1101. NumberSequenceKeypoint.new(0, 0, 0),
  1102. NumberSequenceKeypoint.new(0.529, 0.3, 0),
  1103. NumberSequenceKeypoint.new(1, 1, 1)
  1104. })
  1105. pe.ZOffset = 5
  1106. pe.VelocitySpread = 360
  1107. pe.Parent = brick
  1108. pe.Enabled = true
  1109. clpe = pe:Clone()
  1110. clpe.Parent = brick2
  1111. wait(0.25)
  1112. pe.Enabled = false
  1113. clpe.Enabled = false
  1114. while wait() do
  1115. if not sou.IsPlaying then
  1116. sou:Destroy()
  1117. end
  1118. end
  1119. end
  1120.  
  1121. if say == "transform, 6" then
  1122. bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=7074749"
  1123. bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=7074749"
  1124.  
  1125. a = bg1.Head:getChildren()
  1126. for i = 1, #a do
  1127. if a[i].className == "Part" then
  1128. a[i]:Destroy()
  1129. end
  1130. end
  1131.  
  1132. b = bg2.Head:getChildren()
  1133. for i = 1, #b do
  1134. if b[i].className == "Part" then
  1135. b[i]:Destroy()
  1136. end
  1137. end
  1138.  
  1139. for _,c in pairs(bg2:GetChildren()) do
  1140. if c:IsA('Shirt') then
  1141. c:Destroy()
  1142. shirt = Instance.new("Shirt", bg2)
  1143. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=4904066"
  1144. end
  1145. end
  1146.  
  1147. for _,c in pairs(bg1:GetChildren()) do
  1148. if c:IsA('Pants') then
  1149. c:Destroy()
  1150. pants = Instance.new("Pants", bg1)
  1151. pants.PantsTemplate = "http://www.roblox.com/asset/?id=2577832"
  1152. end
  1153. end
  1154.  
  1155. for _,c in pairs(bg2:GetChildren()) do
  1156. if c:IsA('Pants') then
  1157. c:Destroy()
  1158. pants = Instance.new("Pants", bg2)
  1159. pants.PantsTemplate = "http://www.roblox.com/asset/?id=2577832"
  1160. end
  1161. end
  1162.  
  1163. for _,c in pairs(bg1:GetChildren()) do
  1164. if c:IsA('Shirt') then
  1165. c:Destroy()
  1166. shirt = Instance.new("Shirt", bg1)
  1167. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=4904066"
  1168. end
  1169. end
  1170.  
  1171.  
  1172. hair = Instance.new("Part", bg1.Head)
  1173. hairmesh = Instance.new("SpecialMesh", hair)
  1174. hairmesh.MeshId = "http://www.roblox.com/asset/?id=1286427"
  1175. hairmesh.TextureId = "http://www.roblox.com/asset/?id=1309894"
  1176. hairmesh.Scale = Vector3.new(1.1, 1.1, 1.1)
  1177. hair.Transparency = 0
  1178. hair.CanCollide = false
  1179. hair.Name = "plrhair"
  1180. hair.Anchored = false
  1181. clhair = hair:Clone()
  1182. clhair.Parent = bg2.Head
  1183. Weld = Instance.new("Weld", bg1)
  1184. Weld.Part0 = bg1.Head
  1185. Weld.Part1 = hair
  1186. Weld.C1 = CFrame.new(0, -0.10, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1187. Weld = Instance.new("Weld", bg2)
  1188. Weld.Part0 = bg2.Head
  1189. Weld.Part1 = clhair
  1190. Weld.C1 = CFrame.new(0, -0.10, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1191.  
  1192.  
  1193. hair = Instance.new("Part", bg1.Head)
  1194. hairmesh = Instance.new("SpecialMesh", hair)
  1195. hairmesh.MeshId = "http://www.roblox.com/asset/?id=25648271"
  1196. hairmesh.TextureId = "http://www.roblox.com/asset/?id=28664001"
  1197. hairmesh.Scale = Vector3.new(1.3, 1.35, 1.3)
  1198. hair.Transparency = 0
  1199. hair.CanCollide = false
  1200. hair.Name = "plrhair"
  1201. hair.Anchored = false
  1202. clhair = hair:Clone()
  1203. clhair.Parent = bg2.Head
  1204. Weld = Instance.new("Weld", bg1)
  1205. Weld.Part0 = bg1.Head
  1206. Weld.Part1 = hair
  1207. Weld.C1 = CFrame.new(0, -0.60, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1208. Weld = Instance.new("Weld", bg2)
  1209. Weld.Part0 = bg2.Head
  1210. Weld.Part1 = clhair
  1211. Weld.C1 = CFrame.new(0, -0.60, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1212.  
  1213. brick = Instance.new("Part")
  1214. brick.CanCollide = false
  1215. brick.Anchored = true
  1216. brick.CFrame = bg1.Torso.CFrame
  1217. brick.Transparency = 1
  1218. brick.Parent = game.Workspace
  1219. brick2 = Instance.new("Part")
  1220. brick2.CanCollide = false
  1221. brick2.Anchored = true
  1222. brick2.CFrame = bg2.Torso.CFrame
  1223. brick2.Transparency = 1
  1224. brick2.Parent = game.Workspace
  1225. local sou = Instance.new("Sound")
  1226. sou.Pitch = 1
  1227. sou.Volume = 1
  1228. sou.SoundId = "rbxassetid://722960601"
  1229. sou.Parent = bg1.Torso
  1230. sou:Play()
  1231. local pe = Instance.new("ParticleEmitter")
  1232. pe.Acceleration = Vector3.new(0, 8, 0)
  1233. pe.Lifetime = NumberRange.new(1, 1.5)
  1234. pe.Rate = 20000
  1235. pe.RotSpeed = NumberRange.new(-30, 30)
  1236. pe.Rotation = NumberRange.new(0, 360)
  1237. pe.Size = NumberSequence.new({
  1238. NumberSequenceKeypoint.new(0, 4.38, 0),
  1239. NumberSequenceKeypoint.new(0.672, 4.14, 0),
  1240. NumberSequenceKeypoint.new(1, 1.48, 0)
  1241. })
  1242. pe.Texture = "rbxassetid://244221440"
  1243. pe.Transparency = NumberSequence.new({
  1244. NumberSequenceKeypoint.new(0, 0, 0),
  1245. NumberSequenceKeypoint.new(0.529, 0.3, 0),
  1246. NumberSequenceKeypoint.new(1, 1, 1)
  1247. })
  1248. pe.ZOffset = 5
  1249. pe.VelocitySpread = 360
  1250. pe.Parent = brick
  1251. pe.Enabled = true
  1252. clpe = pe:Clone()
  1253. clpe.Parent = brick2
  1254. wait(0.25)
  1255. pe.Enabled = false
  1256. clpe.Enabled = false
  1257. while wait() do
  1258. if not sou.IsPlaying then
  1259. sou:Destroy()
  1260. end
  1261. end
  1262. end
  1263.  
  1264. if say == "transform, 5" then
  1265. bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916"
  1266. bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916"
  1267.  
  1268. a = bg1.Head:getChildren()
  1269. for i = 1, #a do
  1270. if a[i].className == "Part" then
  1271. a[i]:Destroy()
  1272. end
  1273. end
  1274.  
  1275. b = bg2.Head:getChildren()
  1276. for i = 1, #b do
  1277. if b[i].className == "Part" then
  1278. b[i]:Destroy()
  1279. end
  1280. end
  1281.  
  1282. for _,c in pairs(bg2:GetChildren()) do
  1283. if c:IsA('Shirt') then
  1284. c:Destroy()
  1285. shirt = Instance.new("Shirt", bg2)
  1286. shirt.ShirtTemplate = "rbxassetid://146364138"
  1287. end
  1288. end
  1289.  
  1290. for _,c in pairs(bg1:GetChildren()) do
  1291. if c:IsA('Pants') then
  1292. c:Destroy()
  1293. pants = Instance.new("Pants", bg1)
  1294. pants.PantsTemplate = "rbxassetid://195399271"
  1295. end
  1296. end
  1297.  
  1298. for _,c in pairs(bg2:GetChildren()) do
  1299. if c:IsA('Pants') then
  1300. c:Destroy()
  1301. pants = Instance.new("Pants", bg2)
  1302. pants.PantsTemplate = "rbxassetid://195399271"
  1303. end
  1304. end
  1305.  
  1306. for _,c in pairs(bg1:GetChildren()) do
  1307. if c:IsA('Shirt') then
  1308. c:Destroy()
  1309. shirt = Instance.new("Shirt", bg1)
  1310. shirt.ShirtTemplate = "rbxassetid://175602621"
  1311. end
  1312. end
  1313.  
  1314. hair = Instance.new("Part", bg1.Head)
  1315. hairmesh = Instance.new("SpecialMesh", hair)
  1316. hairmesh.MeshId = "http://www.roblox.com/asset/?id=16190466"
  1317. hairmesh.TextureId = "http://www.roblox.com/asset/?id=59293792"
  1318. hairmesh.Scale = Vector3.new(1.1, 1.1, 1.1)
  1319. hair.Transparency = 0
  1320. hair.CanCollide = false
  1321. hair.Name = "plrhair"
  1322. hair.Anchored = false
  1323. clhair = hair:Clone()
  1324. clhair.Parent = bg2.Head
  1325. clhair.Mesh.TextureId = "http://www.roblox.com/asset/?id=114723589"
  1326. clhair.Mesh.MeshId = "http://www.roblox.com/asset/?id=16101994"
  1327. clhair.Mesh.Scale = Vector3.new(1.02,1.02,1.02)
  1328. Weld = Instance.new("Weld", bg1)
  1329. Weld.Part0 = bg1.Head
  1330. Weld.Part1 = hair
  1331. Weld.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1332. Weld = Instance.new("Weld", bg2)
  1333. Weld.Part0 = bg2.Head
  1334. Weld.Part1 = clhair
  1335. Weld.C1 = CFrame.new(0, -0.14, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1336.  
  1337. hair3 = Instance.new("Part", bg1.Head)
  1338. hairmesh3 = Instance.new("SpecialMesh", hair3)
  1339. hairmesh3.MeshId = "http://www.roblox.com/asset/?id=30166087"
  1340. hairmesh3.TextureId = "http://www.roblox.com/asset/?id=30166098"
  1341. hairmesh3.Scale = Vector3.new(1, 1, 1)
  1342. hair3.Transparency = 0
  1343. hair3.CanCollide = false
  1344. hair3.Name = "plrhair"
  1345. hair3.Anchored = false
  1346. clhair3 = hair3:Clone()
  1347. clhair3.Parent = bg2.Head
  1348. Weld = Instance.new("Weld", bg1)
  1349. Weld.Part0 = bg1.Head
  1350. Weld.Part1 = hair3
  1351. Weld.C1 = CFrame.new(0, -0.10, 0.3)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1352. Weld = Instance.new("Weld", bg2)
  1353. Weld.Part0 = bg2.Head
  1354. Weld.Part1 = clhair3
  1355. Weld.C1 = CFrame.new(0, -0.10, 0.3)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1356.  
  1357. brick = Instance.new("Part")
  1358. brick.CanCollide = false
  1359. brick.Anchored = true
  1360. brick.CFrame = bg1.Torso.CFrame
  1361. brick.Transparency = 1
  1362. brick.Parent = game.Workspace
  1363. brick2 = Instance.new("Part")
  1364. brick2.CanCollide = false
  1365. brick2.Anchored = true
  1366. brick2.CFrame = bg2.Torso.CFrame
  1367. brick2.Transparency = 1
  1368. brick2.Parent = game.Workspace
  1369. local sou = Instance.new("Sound")
  1370. sou.Pitch = 1
  1371. sou.Volume = 1
  1372. sou.SoundId = "rbxassetid://722960601"
  1373. sou.Parent = bg1.Torso
  1374. sou:Play()
  1375. local pe = Instance.new("ParticleEmitter")
  1376. pe.Acceleration = Vector3.new(0, 8, 0)
  1377. pe.Lifetime = NumberRange.new(1, 1.5)
  1378. pe.Rate = 20000
  1379. pe.RotSpeed = NumberRange.new(-30, 30)
  1380. pe.Rotation = NumberRange.new(0, 360)
  1381. pe.Size = NumberSequence.new({
  1382. NumberSequenceKeypoint.new(0, 4.38, 0),
  1383. NumberSequenceKeypoint.new(0.672, 4.14, 0),
  1384. NumberSequenceKeypoint.new(1, 1.48, 0)
  1385. })
  1386. pe.Texture = "rbxassetid://244221440"
  1387. pe.Transparency = NumberSequence.new({
  1388. NumberSequenceKeypoint.new(0, 0, 0),
  1389. NumberSequenceKeypoint.new(0.529, 0.3, 0),
  1390. NumberSequenceKeypoint.new(1, 1, 1)
  1391. })
  1392. pe.ZOffset = 5
  1393. pe.VelocitySpread = 360
  1394. pe.Parent = brick
  1395. pe.Enabled = true
  1396. clpe = pe:Clone()
  1397. clpe.Parent = brick2
  1398. wait(0.25)
  1399. pe.Enabled = false
  1400. clpe.Enabled = false
  1401. while wait() do
  1402. if not sou.IsPlaying then
  1403. sou:Destroy()
  1404. end
  1405. end
  1406. end
  1407.  
  1408.  
  1409. if say == "transform, 2" then
  1410. bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916"
  1411. bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916"
  1412.  
  1413. a = bg1.Head:getChildren()
  1414. for i = 1, #a do
  1415. if a[i].className == "Part" then
  1416. a[i]:Destroy()
  1417. end
  1418. end
  1419.  
  1420. b = bg2.Head:getChildren()
  1421. for i = 1, #b do
  1422. if b[i].className == "Part" then
  1423. b[i]:Destroy()
  1424. end
  1425. end
  1426. hair = Instance.new("Part", bg1.Head)
  1427. hairmesh = Instance.new("SpecialMesh", hair)
  1428. hairmesh.MeshId = "http://www.roblox.com/asset/?id=28035864"
  1429. hairmesh.TextureId = "http://www.roblox.com/asset/?id=28035854"
  1430. hairmesh.Scale = Vector3.new(1.03, 1.03, 0.98)
  1431. hair.Transparency = 0
  1432. hair.CanCollide = false
  1433. hair.Name = "plrhair"
  1434. hair.Anchored = false
  1435. clhair = hair:Clone()
  1436. clhair.Parent = bg2.Head
  1437. Weld = Instance.new("Weld", bg1)
  1438. Weld.Part0 = bg1.Head
  1439. Weld.Part1 = hair
  1440. Weld.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1441. Weld = Instance.new("Weld", bg2)
  1442. Weld.Part0 = bg2.Head
  1443. Weld.Part1 = clhair
  1444. Weld.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1445.  
  1446. hair3 = Instance.new("Part", bg1.Head)
  1447. hairmesh3 = Instance.new("SpecialMesh", hair3)
  1448. hairmesh3.MeshId = "http://www.roblox.com/asset/?id=30166087"
  1449. hairmesh3.TextureId = "http://www.roblox.com/asset/?id=30166098"
  1450. hairmesh3.Scale = Vector3.new(1, 1, 1)
  1451. hair3.Transparency = 0
  1452. hair3.CanCollide = false
  1453. hair3.Name = "plrhair"
  1454. hair3.Anchored = false
  1455. clhair3 = hair3:Clone()
  1456. clhair3.Parent = bg2.Head
  1457. Weld = Instance.new("Weld", bg1)
  1458. Weld.Part0 = bg1.Head
  1459. Weld.Part1 = hair3
  1460. Weld.C1 = CFrame.new(0, -0.10, 0.3)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1461. Weld = Instance.new("Weld", bg2)
  1462. Weld.Part0 = bg2.Head
  1463. Weld.Part1 = clhair3
  1464. Weld.C1 = CFrame.new(0, -0.10, 0.3)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1465.  
  1466. for _,c in pairs(bg1:GetChildren()) do
  1467. if c:IsA('Pants') then
  1468. c:Destroy()
  1469. pants = Instance.new("Pants", bg1)
  1470. pants.PantsTemplate = "http://www.roblox.com/asset/?id=747111515"
  1471. end
  1472. end
  1473.  
  1474. for _,c in pairs(bg1:GetChildren()) do
  1475. if c:IsA('Shirt') then
  1476. c:Destroy()
  1477. shirt = Instance.new("Shirt", bg1)
  1478. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=153259531"
  1479. end
  1480. end
  1481.  
  1482. for _,c in pairs(bg2:GetChildren()) do
  1483. if c:IsA('Pants') then
  1484. c:Destroy()
  1485. pants = Instance.new("Pants", bg2)
  1486. pants.PantsTemplate = "http://www.roblox.com/asset/?id=747111515"
  1487. end
  1488. end
  1489.  
  1490. for _,c in pairs(bg2:GetChildren()) do
  1491. if c:IsA('Shirt') then
  1492. c:Destroy()
  1493. shirt = Instance.new("Shirt", bg2)
  1494. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=153259531"
  1495. end
  1496. end
  1497.  
  1498. brick = Instance.new("Part")
  1499. brick.CanCollide = false
  1500. brick.Anchored = true
  1501. brick.CFrame = bg1.Torso.CFrame
  1502. brick.Transparency = 1
  1503. brick.Parent = game.Workspace
  1504. brick2 = Instance.new("Part")
  1505. brick2.CanCollide = false
  1506. brick2.Anchored = true
  1507. brick2.CFrame = bg2.Torso.CFrame
  1508. brick2.Transparency = 1
  1509. brick2.Parent = game.Workspace
  1510. local sou = Instance.new("Sound")
  1511. sou.Pitch = 1
  1512. sou.Volume = 1
  1513. sou.SoundId = "rbxassetid://722960601"
  1514. sou.Parent = bg1.Torso
  1515. sou:Play()
  1516. local pe = Instance.new("ParticleEmitter")
  1517. pe.Acceleration = Vector3.new(0, 8, 0)
  1518. pe.Lifetime = NumberRange.new(1, 1.5)
  1519. pe.Rate = 20000
  1520. pe.RotSpeed = NumberRange.new(-30, 30)
  1521. pe.Rotation = NumberRange.new(0, 360)
  1522. pe.Size = NumberSequence.new({
  1523. NumberSequenceKeypoint.new(0, 4.38, 0),
  1524. NumberSequenceKeypoint.new(0.672, 4.14, 0),
  1525. NumberSequenceKeypoint.new(1, 1.48, 0)
  1526. })
  1527. pe.Texture = "rbxassetid://244221440"
  1528. pe.Transparency = NumberSequence.new({
  1529. NumberSequenceKeypoint.new(0, 0, 0),
  1530. NumberSequenceKeypoint.new(0.529, 0.3, 0),
  1531. NumberSequenceKeypoint.new(1, 1, 1)
  1532. })
  1533. pe.ZOffset = 5
  1534. pe.VelocitySpread = 360
  1535. pe.Parent = brick
  1536. pe.Enabled = true
  1537. clpe = pe:Clone()
  1538. clpe.Parent = brick2
  1539. wait(0.25)
  1540. pe.Enabled = false
  1541. clpe.Enabled = false
  1542. while wait() do
  1543. if not sou.IsPlaying then
  1544. sou:Destroy()
  1545. end
  1546. end
  1547. end
  1548.  
  1549.  
  1550. if say == "guns, normalbullet" then
  1551. nvm5.Value = 0
  1552. end
  1553.  
  1554. if say == "guns, explodingbullet" then
  1555. nvm5.Value = 1
  1556. end
  1557.  
  1558. if say == "guns, smokebullet" then
  1559. nvm5.Value = 2
  1560. end
  1561.  
  1562. if say == "guns, out" then
  1563. nvm.Value = 1
  1564. Mouse = plr:GetMouse()
  1565.  
  1566. Mouse.Button1Down:connect(function()
  1567. if nvm.Value == 1 then
  1568. randomg = math.random(1,2)
  1569. if randomg == 1 then
  1570. bullet = Instance.new('Part', game.Workspace)
  1571. bullet.Touched:connect(function(hit)
  1572. if hit.Parent:FindFirstChild("Humanoid") then
  1573. hit.Parent:BreakJoints()
  1574. end
  1575. end)
  1576. if nvm5.Value == 0 then
  1577. bullet.Anchored = false
  1578. bullet.CanCollide = false
  1579. bullet.Size = Vector3.new(0.2,0.2,0.2)
  1580. bullet.BrickColor = BrickColor.new('Really black')
  1581. bullet.CFrame = Mouse.Hit
  1582. bullet.Name = 'Bullet'
  1583. game.Debris:AddItem(bullet, 1)
  1584. local shoot2 = Instance.new("Sound", bg2["Right Arm"])
  1585. shoot2.SoundId="rbxassetid://180955656"
  1586. shoot2:Play()
  1587. bg1.Torso.CFrame = CFrame.new(bg1.Torso.Position, Mouse.Hit.p)
  1588. end
  1589.  
  1590. if nvm5.Value == 1 then
  1591. bullet.CFrame = Mouse.Hit
  1592. local Ex = Instance.new("Explosion", Workspace)
  1593. Ex.BlastRadius = 16
  1594. Ex.DestroyJointRadiusPercent = 0.5
  1595. Ex.Position = Mouse.Hit.p
  1596. bullet.Anchored = false
  1597. bullet.CanCollide = false
  1598. bullet.Size = Vector3.new(0.2,0.2,0.2)
  1599. bullet.BrickColor = BrickColor.new('Really black')
  1600. bullet.Name = 'Bullet'
  1601. game.Debris:AddItem(bullet, 1)
  1602. local shoot2 = Instance.new("Sound", bg2["Right Arm"])
  1603. shoot2.SoundId="rbxassetid://180955656"
  1604. shoot2:Play()
  1605. bg1.Torso.CFrame = CFrame.new(bg1.Torso.Position, Mouse.Hit.p)
  1606. end
  1607.  
  1608.  
  1609. if nvm5.Value == 2 then
  1610. bullet.CFrame = Mouse.Hit
  1611. x1 = Instance.new("Smoke", bullet)
  1612. x1.Color = Color3.new(0.596078, 0.596078, 0.596078)
  1613. x1.Opacity = 0.89999997615814
  1614. x1.RiseVelocity = 20
  1615. x1.Size = 45
  1616. bullet.Anchored = false
  1617. bullet.CanCollide = false
  1618. bullet.Size = Vector3.new(0.2,0.2,0.2)
  1619. bullet.BrickColor = BrickColor.new('Really black')
  1620. bullet.Name = 'Bullet'
  1621. game.Debris:AddItem(bullet, 5)
  1622. local shoot2 = Instance.new("Sound", bg2["Right Arm"])
  1623. shoot2.SoundId="rbxassetid://180955656"
  1624. shoot2:Play()
  1625. bg1.Torso.CFrame = CFrame.new(bg1.Torso.Position, Mouse.Hit.p)
  1626. end
  1627.  
  1628. end
  1629. if randomg == 2 then
  1630. bullet = Instance.new('Part', game.Workspace)
  1631. bullet.Touched:connect(function(hit)
  1632. if hit.Parent:FindFirstChild("Humanoid") then
  1633. hit.Parent:BreakJoints()
  1634. end
  1635. end)
  1636. if nvm5.Value == 0 then
  1637. bullet.Anchored = false
  1638. bullet.CanCollide = false
  1639. bullet.Size = Vector3.new(0.2,0.2,0.2)
  1640. bullet.BrickColor = BrickColor.new('Really black')
  1641. bullet.CFrame = Mouse.Hit
  1642. bullet.Name = 'Bullet'
  1643. game.Debris:AddItem(bullet, 1)
  1644. local shoot2 = Instance.new("Sound", bg2["Right Arm"])
  1645. shoot2.SoundId="rbxassetid://180955656"
  1646. shoot2:Play()
  1647. bg2.Torso.CFrame = CFrame.new(bg2.Torso.Position, Mouse.Hit.p)
  1648. end
  1649.  
  1650. if nvm5.Value == 1 then
  1651. bullet.CFrame = Mouse.Hit
  1652. local Ex = Instance.new("Explosion", Workspace)
  1653. Ex.BlastRadius = 16
  1654. Ex.DestroyJointRadiusPercent = 0.5
  1655. Ex.Position = Mouse.Hit.p
  1656. bullet.Anchored = false
  1657. bullet.CanCollide = false
  1658. bullet.Size = Vector3.new(0.2,0.2,0.2)
  1659. bullet.BrickColor = BrickColor.new('Really black')
  1660. bullet.Name = 'Bullet'
  1661. game.Debris:AddItem(bullet, 1)
  1662. local shoot2 = Instance.new("Sound", bg2["Right Arm"])
  1663. shoot2.SoundId="rbxassetid://180955656"
  1664. shoot2:Play()
  1665. bg2.Torso.CFrame = CFrame.new(bg2.Torso.Position, Mouse.Hit.p)
  1666. end
  1667.  
  1668. if nvm5.Value == 2 then
  1669. bullet.CFrame = Mouse.Hit
  1670. x1 = Instance.new("Smoke", bullet)
  1671. x1.Color = Color3.new(0.596078, 0.596078, 0.596078)
  1672. x1.Opacity = 0.89999997615814
  1673. x1.RiseVelocity = 20
  1674. x1.Size = 45
  1675. bullet.Anchored = false
  1676. bullet.CanCollide = false
  1677. bullet.Size = Vector3.new(0.2,0.2,0.2)
  1678. bullet.BrickColor = BrickColor.new('Really black')
  1679. bullet.Name = 'Bullet'
  1680. game.Debris:AddItem(bullet, 50)
  1681. local shoot2 = Instance.new("Sound", bg2["Right Arm"])
  1682. shoot2.SoundId="rbxassetid://180955656"
  1683. shoot2:Play()
  1684. bg2.Torso.CFrame = CFrame.new(bg2.Torso.Position, Mouse.Hit.p)
  1685. wait(4)
  1686. x1.Enabled = false
  1687. end
  1688.  
  1689. end
  1690. end
  1691. end)
  1692.  
  1693. part1 = Instance.new("Part")
  1694. part1.Parent = char
  1695. part1.Transparency = 0
  1696. part1.BrickColor = BrickColor.new('Really black')
  1697. part1.TopSurface = 0
  1698. part1.BottomSurface = 0
  1699. part1.CanCollide = false
  1700. part1.Anchored = false
  1701. gun = Instance.new("SpecialMesh", part1)
  1702. gun.MeshId = "rbxassetid://4372594"
  1703. gun.Scale = Vector3.new(1, 1, 1)
  1704. part1.CFrame = bg1["Right Arm"].CFrame * CFrame.new(0, 1, 1.75)
  1705. Weld5 = Instance.new("Weld", bg1)
  1706. Weld5.Part0 = bg1["Right Arm"]
  1707. Weld5.Part1 = part1
  1708. Weld5.C1 = CFrame.Angles(math.rad(-83),math.rad(180),math.rad(180)) * CFrame.new(0, 1.50, 0.2) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1709.  
  1710. part2 = Instance.new("Part")
  1711. part2.Parent = char
  1712. part2.Transparency = 0
  1713. part2.BrickColor = BrickColor.new('Really black')
  1714. part2.TopSurface = 0
  1715. part2.BottomSurface = 0
  1716. part2.CanCollide = false
  1717. part2.Anchored = false
  1718. gun2 = Instance.new("SpecialMesh", part2)
  1719. gun2.MeshId = "rbxassetid://4372594"
  1720. gun2.Scale = Vector3.new(1, 1, 1)
  1721. part2.CFrame = bg2["Right Arm"].CFrame * CFrame.new(0, 1, 1.75)
  1722. Weld10 = Instance.new("Weld", bg1)
  1723. Weld10.Part0 = bg2["Right Arm"]
  1724. Weld10.Part1 = part2
  1725. Weld10.C1 = CFrame.Angles(math.rad(-83),math.rad(180),math.rad(180)) * CFrame.new(0, 1.50, 0.2) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1726.  
  1727. charbg1 = bg1
  1728. arm = {charbg1["Right Arm"]}
  1729. charbg1.Torso["Right Shoulder"].Archivable = true
  1730. mc = charbg1.Torso["Right Shoulder"]:Clone()
  1731. weld = Instance.new("Weld", arm[1])
  1732. weld.Part0 = charbg1.Torso
  1733. weld.Part1 = weld.Parent
  1734. weld.C1 = CFrame.new(-1.5,.5,.5)*CFrame.Angles(math.rad(-90),0,0)
  1735.  
  1736. charbg2 = bg2
  1737. arm = {charbg2["Right Arm"]}
  1738. charbg2.Torso["Right Shoulder"].Archivable = true
  1739. mc3 = charbg2.Torso["Right Shoulder"]:Clone()
  1740. weld12 = Instance.new("Weld", arm[1])
  1741. weld12.Part0 = charbg2.Torso
  1742. weld12.Part1 = weld12.Parent
  1743. weld12.C1 = CFrame.new(-1.5,.5,.5)*CFrame.Angles(math.rad(-90),0,0)
  1744. end
  1745.  
  1746. if say == "dance," then
  1747. dance1 = math.random(1,7)
  1748. if dance1 == 1 then
  1749. local animation = Instance.new("Animation")
  1750. animation.AnimationId = "rbxassetid://27789359"
  1751. local animTrack = bg1.Humanoid:LoadAnimation(animation)
  1752. animTrack:Play()
  1753. end
  1754. if dance1 == 2 then
  1755. local animation = Instance.new("Animation")
  1756. animation.AnimationId = "rbxassetid://30196114"
  1757. local animTrack = bg1.Humanoid:LoadAnimation(animation)
  1758. animTrack:Play()
  1759. end
  1760. if dance1 == 3 then
  1761. local animation = Instance.new("Animation")
  1762. animation.AnimationId = "rbxassetid://248263260"
  1763. local animTrack = bg1.Humanoid:LoadAnimation(animation)
  1764. animTrack:Play()
  1765. end
  1766. if dance1 == 4 then
  1767. local animation = Instance.new("Animation")
  1768. animation.AnimationId = "rbxassetid://45834924"
  1769. local animTrack = bg1.Humanoid:LoadAnimation(animation)
  1770. animTrack:Play()
  1771. end
  1772. if dance1 == 5 then
  1773. local animation = Instance.new("Animation")
  1774. animation.AnimationId = "rbxassetid://33796059"
  1775. local animTrack = bg1.Humanoid:LoadAnimation(animation)
  1776. animTrack:Play()
  1777. end
  1778. if dance1 == 6 then
  1779. local animation = Instance.new("Animation")
  1780. animation.AnimationId = "rbxassetid://28488254"
  1781. local animTrack = bg1.Humanoid:LoadAnimation(animation)
  1782. animTrack:Play()
  1783. end
  1784. if dance1 == 7 then
  1785. local animation = Instance.new("Animation")
  1786. animation.AnimationId = "rbxassetid://52155728"
  1787. local animTrack = bg1.Humanoid:LoadAnimation(animation)
  1788. animTrack:Play()
  1789. end
  1790.  
  1791. dance2 = math.random(1,7)
  1792. if dance2 == 1 then
  1793. local animation = Instance.new("Animation")
  1794. animation.AnimationId = "rbxassetid://27789359"
  1795. local animTrack = bg2.Humanoid:LoadAnimation(animation)
  1796. animTrack:Play()
  1797. end
  1798. if dance2 == 2 then
  1799. local animation = Instance.new("Animation")
  1800. animation.AnimationId = "rbxassetid://30196114"
  1801. local animTrack = bg2.Humanoid:LoadAnimation(animation)
  1802. animTrack:Play()
  1803. end
  1804. if dance2 == 3 then
  1805. local animation = Instance.new("Animation")
  1806. animation.AnimationId = "rbxassetid://248263260"
  1807. local animTrack = bg2.Humanoid:LoadAnimation(animation)
  1808. animTrack:Play()
  1809. end
  1810. if dance2 == 4 then
  1811. local animation = Instance.new("Animation")
  1812. animation.AnimationId = "rbxassetid://45834924"
  1813. local animTrack = bg2.Humanoid:LoadAnimation(animation)
  1814. animTrack:Play()
  1815. end
  1816. if dance2 == 5 then
  1817. local animation = Instance.new("Animation")
  1818. animation.AnimationId = "rbxassetid://33796059"
  1819. local animTrack = bg2.Humanoid:LoadAnimation(animation)
  1820. animTrack:Play()
  1821. end
  1822. if dance2 == 6 then
  1823. local animation = Instance.new("Animation")
  1824. animation.AnimationId = "rbxassetid://28488254"
  1825. local animTrack = bg2.Humanoid:LoadAnimation(animation)
  1826. animTrack:Play()
  1827. end
  1828. if dance2 == 7 then
  1829. local animation = Instance.new("Animation")
  1830. animation.AnimationId = "rbxassetid://52155728"
  1831. local animTrack = bg2.Humanoid:LoadAnimation(animation)
  1832. animTrack:Play()
  1833. end
  1834. end
  1835.  
  1836. if say == "focus," then
  1837. local animation = Instance.new("Animation")
  1838. animation.AnimationId = "rbxassetid://0"
  1839. local animTrack = bg1.Humanoid:LoadAnimation(animation)
  1840. animTrack:Play()
  1841.  
  1842. local animation = Instance.new("Animation")
  1843. animation.AnimationId = "rbxassetid://0"
  1844. local animTrack = bg2.Humanoid:LoadAnimation(animation)
  1845. animTrack:Play()
  1846. end
  1847.  
  1848. if say == "guns, in" then
  1849. nvm.Value = 0
  1850. weld:Destroy()
  1851. mc.Parent = charbg1.Torso
  1852.  
  1853. Weld10:Destroy()
  1854. Weld5:Destroy()
  1855. part1:Destroy()
  1856. part2:Destroy()
  1857.  
  1858. weld12:Destroy()
  1859. mc3.Parent = charbg2.Torso
  1860. end
  1861.  
  1862. if say == "unride," then
  1863. nvm3.Value = 0
  1864. nvm2.Value = 1
  1865. if bg1.Head:FindFirstChild('noobweld') then
  1866. bg1.Head.noobweld:Destroy()
  1867. end
  1868. if char.Head:FindFirstChild('firstweld') then
  1869. char.Head.firstweld:Destroy()
  1870. end
  1871. bg2.Humanoid.WalkSpeed = 16
  1872. bg1.Humanoid.Sit = false
  1873. bg2.Humanoid.Sit = false
  1874. char.Humanoid.Sit = false
  1875. end
  1876.  
  1877. if say == "ride," then
  1878. Mouse = plr:GetMouse()
  1879. nvm2.Value = 0
  1880. nvm3.Value = 1
  1881. p = Instance.new('Weld', plr.Character.Head)
  1882. p.Part0 = plr.Character:FindFirstChild("Torso") or plr.Character:FindFirstChild("UpperTorso")
  1883. p.Part1 = bg1:FindFirstChild("Torso") or bg1:FindFirstChild("UpperTorso")
  1884. p.Name = 'firstweld'
  1885. p.C0 = CFrame.new(0,-2.2,-.50)
  1886. a = Instance.new('Weld', bg1.Head)
  1887. a.Part0 = bg1:FindFirstChild("Torso") or bg1:FindFirstChild("UpperTorso")
  1888. a.Part1 = bg2:FindFirstChild("Torso") or bg2:FindFirstChild("UpperTorso")
  1889. a.C0 = CFrame.new(0,-2.2,-.50)
  1890. a.Name = 'noobweld'
  1891. plr.Character.Humanoid.Sit = true
  1892. bg1.Humanoid.Sit = true
  1893. while wait() do
  1894. if nvm3.Value == 1 then
  1895. bg2.Humanoid:MoveTo(Mouse.Hit.p)
  1896. plr.Character.Humanoid.Sit = true
  1897. bg1.Humanoid.Sit = true
  1898. bg1.Humanoid.Health = bg1.Humanoid.Health + 100
  1899. bg2.Humanoid.Health = bg2.Humanoid.Health + 100
  1900. bg2.Humanoid.WalkSpeed = 65
  1901. end
  1902. end
  1903.  
  1904. if say == "spy," then
  1905. signal = Instance.new('Part', game.ReplicatedStorage)
  1906. local ply = game.Players:GetPlayers()[math.random(game.Players.NumPlayers)]
  1907. bgchoose = math.random(1, 2)
  1908. if bgchoose == 1 then
  1909.  
  1910. bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=20722053"
  1911.  
  1912. for _,c in pairs(bg1:GetChildren()) do
  1913. if c:IsA('Pants') then
  1914. c:Destroy()
  1915. pants = Instance.new("Pants", bg1)
  1916. pants.PantsTemplate = "http://www.roblox.com/asset/?id=144076759"
  1917. end
  1918. end
  1919.  
  1920. for _,c in pairs(bg1:GetChildren()) do
  1921. if c:IsA('Shirt') then
  1922. c:Destroy()
  1923. shirt = Instance.new("Shirt", bg1)
  1924. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=382538058"
  1925. end
  1926. end
  1927.  
  1928. hair = Instance.new("Part", bg1.Head)
  1929. hairmesh = Instance.new("SpecialMesh", hair)
  1930. hairmesh.MeshId = "rbxassetid://494950128"
  1931. hairmesh.Scale = Vector3.new(1, 1, 1)
  1932. hair.Transparency = 0
  1933. hair.CanCollide = false
  1934. hair.Name = "plrhair"
  1935. hair.Anchored = false
  1936. hair.BrickColor = BrickColor.new("Really red")
  1937. Weld = Instance.new("Weld", bg1)
  1938. Weld.Part0 = bg1.Head
  1939. Weld.Part1 = hair
  1940. Weld.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1941. while wait() do
  1942. if game.ReplicatedStorage:FindFirstChild('Part') then
  1943. bg1.Torso.CFrame = CFrame.new(bg1.Torso.Position, ply.Character.Torso.Position)
  1944. end
  1945. end
  1946.  
  1947. if bgchoose == 2 then
  1948.  
  1949. bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=20418518"
  1950.  
  1951. for _,c in pairs(bg2:GetChildren()) do
  1952. if c:IsA('Pants') then
  1953. c:Destroy()
  1954. pants = Instance.new("Pants", bg2)
  1955. pants.PantsTemplate = "http://www.roblox.com/asset/?id=442560707"
  1956. end
  1957. end
  1958.  
  1959. for _,c in pairs(bg2:GetChildren()) do
  1960. if c:IsA('Shirt') then
  1961. c:Destroy()
  1962. shirt = Instance.new("Shirt", bg2)
  1963. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=442557590"
  1964. end
  1965. end
  1966.  
  1967. hair1 = Instance.new("Part", bg2.Head)
  1968. hairmesh1 = Instance.new("SpecialMesh", hair1)
  1969. hairmesh1.MeshId = "rbxassetid://494950128"
  1970. hairmesh1.Scale = Vector3.new(1, 1, 1)
  1971. hair1.Transparency = 0
  1972. hair1.CanCollide = false
  1973. hair1.Name = "plrhair"
  1974. hair1.Anchored = false
  1975. hair1.BrickColor = BrickColor.new("Really black")
  1976. Weld1 = Instance.new("Weld", bg2)
  1977. Weld1.Part0 = bg2.Head
  1978. Weld1.Part1 = hair1
  1979. Weld1.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1980. signal2 = Instance.new('Part', game.ReplicatedStorage)
  1981. signal2.Name = "Part2"
  1982. while wait() do
  1983. if game.ReplicatedStorage:FindFirstChild('Part2') then
  1984. bg2.Torso.CFrame = CFrame.new(bg2.Torso.Position, ply.Character.Torso.Position)
  1985. end
  1986. end
  1987. end
  1988. end
  1989. end
  1990. end
  1991. end)
  1992.  
  1993. game:GetService('RunService').RenderStepped:connect(function()
  1994. if nvm2.Value == 1 then
  1995. bg1.Humanoid.Health = bg1.Humanoid.Health + 5000
  1996. bg2.Humanoid.Health = bg2.Humanoid.Health + 5000
  1997. bg1.Humanoid:MoveTo(bgpoint1.Position)
  1998. bg2.Humanoid:MoveTo(bgpoint2.Position)
  1999. if bg1.Humanoid.PlatformStand == true then
  2000. bg1.Humanoid.PlatformStand = false
  2001. end
  2002. if bg2.Humanoid.PlatformStand == true then
  2003. bg2.Humanoid.PlatformStand = false
  2004. end
  2005. if bg1.Humanoid.Sit == true then
  2006. bg1.Humanoid.Sit = false
  2007. end
  2008. if bg2.Humanoid.Sit == true then
  2009. bg2.Humanoid.Sit = false
  2010. end
  2011. for _,v in pairs(workspace:children()) do
  2012. if v:IsA('Model') and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChildOfClass("Humanoid") then
  2013. if (v.HumanoidRootPart.Position-bg1.Torso.Position).magnitude <=2 then
  2014. bg1.Humanoid.Jump=true
  2015. end
  2016. end
  2017. end
  2018. for _,v in pairs(workspace:children()) do
  2019. if v:IsA('Model') and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChildOfClass("Humanoid") then
  2020. if (v.HumanoidRootPart.Position-bg2.Torso.Position).magnitude <=2 then
  2021. bg2.Humanoid.Jump=true
  2022. end
  2023. end
  2024. end
  2025. if (game.Players.LocalPlayer.Character.Torso.Position - bg2.Torso.Position).magnitude <= 20 then
  2026. bg2.Humanoid.WalkSpeed = 16
  2027. else
  2028. bg2.Humanoid.WalkSpeed = 55
  2029. end
  2030. if (game.Players.LocalPlayer.Character.Torso.Position - bg1.Torso.Position).magnitude <= 20 then
  2031. bg1.Humanoid.WalkSpeed = 16
  2032. else
  2033. bg1.Humanoid.WalkSpeed = 55
  2034. end
  2035. end
  2036. end)
  2037. for i, v in pairs(game.Players.LocalPlayer.Backpack:children()) do
  2038. if v.className == "HopperBin" and v.Name == "PPATTA's Trap Script" then
  2039. v:Destroy()
  2040. end
  2041. end
  2042.  
  2043. local player = game:service("Players").LocalPlayer
  2044. local mouse = player:GetMouse()
  2045. local char = player.Character
  2046. local Torsoz = char:findFirstChild("Torso")
  2047. local RA = char:findFirstChild("Right Arm")
  2048. local LA = char:findFirstChild("Left Arm")
  2049. local RL = char:findFirstChild("Right Leg")
  2050. local LL = char:findFirstChild("Left Leg")
  2051. local H = char:findFirstChild("Head")
  2052. local RS = Torsoz:findFirstChild("Right Shoulder")
  2053. local LS = Torsoz:findFirstChild("Left Shoulder")
  2054. local RH = Torsoz:findFirstChild("Right Hip")
  2055. local LH = Torsoz:findFirstChild("Left Hip")
  2056. local N = Torsoz:findFirstChild("Neck")
  2057. local NV = Vector3.new()
  2058. local Main
  2059. local Traps = {}
  2060. local Projectiles = {}
  2061. local Bolts = {}
  2062.  
  2063. local bin = Instance.new("HopperBin")
  2064. bin.Name = "PPATTA's Trap Script"
  2065. bin.Parent = player.Backpack
  2066.  
  2067. local P = Instance.new("Part")
  2068. P.Anchored = false
  2069. P.CanCollide = false
  2070. P.Name = "Part"
  2071. P.formFactor = "Custom"
  2072. P.Size = Vector3.new(0.2,0.2,0.2)
  2073. P.BrickColor = BrickColor.new("Black")
  2074. P.Locked = true
  2075. P.TopSurface = 10
  2076. P.BottomSurface = 10
  2077. P.FrontSurface = 10
  2078. P.BackSurface = 10
  2079. P.LeftSurface = 10
  2080. P.RightSurface = 10
  2081.  
  2082. local AnimJoints = {}
  2083.  
  2084. function GetWeld(weld)
  2085. local obj
  2086. for i, v in pairs(AnimJoints) do
  2087. if v[1] == weld then
  2088. obj = v
  2089. break
  2090. end
  2091. end
  2092. if not obj then
  2093. obj = {weld,NV}
  2094. table.insert(AnimJoints,obj)
  2095. end
  2096. return weld.C0.p, obj[2]
  2097. end
  2098.  
  2099. function SetWeld(weld, i, loops, origpos,origangle, nextpos,nextangle,smooth)
  2100. smooth = smooth or 1
  2101. local obj
  2102. for i, v in pairs(AnimJoints) do
  2103. if v[1] == weld then
  2104. obj = v
  2105. break
  2106. end
  2107. end
  2108. if not obj then
  2109. obj = {weld,NV}
  2110. table.insert(AnimJoints,obj)
  2111. end
  2112.  
  2113. local perc = (smooth == 1 and math.sin((math.pi/2)/loops*i)) or i/loops
  2114.  
  2115. local tox,toy,toz = 0,0,0
  2116. tox = math.abs(origangle.x - nextangle.x) *perc
  2117. toy = math.abs(origangle.y - nextangle.y) *perc
  2118. toz = math.abs(origangle.z - nextangle.z) *perc
  2119. tox = (origangle.x > nextangle.x and -tox) or tox
  2120. toy = (origangle.y > nextangle.y and -toy) or toy
  2121. toz = (origangle.z > nextangle.z and -toz) or toz
  2122.  
  2123. local tox2,toy2,toz2 = 0,0,0
  2124. tox2 = math.abs(origpos.x - nextpos.x) *perc
  2125. toy2 = math.abs(origpos.y - nextpos.y) *perc
  2126. toz2 = math.abs(origpos.z - nextpos.z) *perc
  2127. tox2 = (origpos.x > nextpos.x and -tox2) or tox2
  2128. toy2 = (origpos.y > nextpos.y and -toy2) or toy2
  2129. toz2 = (origpos.z > nextpos.z and -toz2) or toz2
  2130.  
  2131. obj[2] = Vector3.new(origangle.x + tox, origangle.y + toy, origangle.z + toz)
  2132. weld.C0 = CFrame.new(origpos.x + tox2,origpos.y + toy2,origpos.z + toz2) * CFrame.Angles(origangle.x + tox,origangle.y + toy,origangle.z + toz)
  2133. end
  2134.  
  2135. function RAY(pos, dir, collidedlist, startpos, endpos, distleft)
  2136. collidedlist = collidedlist or {char}
  2137. startpos = startpos or pos
  2138. distleft = distleft or dir.unit * dir.magnitude
  2139. endpos = endpos or pos + distleft
  2140. local ray = Ray.new(pos, distleft)
  2141. local hitz,enz = workspace:FindPartOnRayWithIgnoreList(ray, collidedlist)
  2142. if hitz ~= nil and not hitz.Parent:findFirstChild("Humanoid") then
  2143. if hitz.CanCollide == false then
  2144. table.insert(collidedlist, hitz)
  2145. local newpos = enz
  2146. local newdistleft = distleft - (dir.unit * (pos - newpos).magnitude)
  2147. if newdistleft ~= NV then
  2148. return RAY(newpos-(dir*0.01), dir, collidedlist, startpos, endpos, newdistleft+(dir*0.01))
  2149. end
  2150. end
  2151. end
  2152. return hitz, enz, ray
  2153. end
  2154.  
  2155. function FindSurface(part, position)
  2156. local obj = part.CFrame:pointToObjectSpace(position)
  2157. local siz = part.Size/2
  2158. for i,v in pairs(Enum.NormalId:GetEnumItems()) do
  2159. local vec = Vector3.FromNormalId(v)
  2160. local wvec = part.CFrame:vectorToWorldSpace(vec)
  2161. local vz = (obj)/(siz*vec)
  2162. if (math.abs(vz.X-1) < 0.01 or math.abs(vz.Y-1) < 0.01 or math.abs(vz.Z-1) < 0.01) then
  2163. return wvec,vec
  2164. end
  2165. end
  2166. if part.className == "WedgePart" then
  2167. local pos = (part.CFrame * CFrame.new(0,part.Size.y/2,part.Size.z/2)).p
  2168. local apos = (part.CFrame * CFrame.Angles(-math.atan2(part.CFrame:pointToObjectSpace(pos).y,part.CFrame:pointToObjectSpace(pos).z),0,0) * CFrame.new(0,1,0)).p
  2169. local wvec,vec = (apos - part.Position).unit, part.CFrame:pointToObjectSpace(apos)
  2170. return wvec,vec
  2171. elseif part.className == "Part" and (part.Shape == Enum.PartType.Ball or part.Shape == Enum.PartType.Cylinder) then
  2172. return (position - part.Position).unit, part.CFrame:vectorToObjectSpace((position - part.Position).unit)
  2173. end
  2174. end
  2175.  
  2176. function CreateTrap(target,pos)
  2177. local m = Instance.new("Model", char)
  2178. m.Name = "Trap"
  2179.  
  2180. local cframe = CFrame.new()
  2181. local anchor = true
  2182.  
  2183. if not target:IsA("Terrain") then
  2184. local wvec,vec = FindSurface(target,pos)
  2185. cframe = CFrame.new(NV,wvec) * CFrame.Angles(-math.pi/2,0,0)
  2186. anchor = target.Anchored
  2187. end
  2188.  
  2189. local c = P:Clone()
  2190. c.Parent = m
  2191. c.Anchored = anchor
  2192. c.CanCollide = true
  2193. c.CFrame = (cframe +pos) * CFrame.Angles(0,math.rad(math.random(1,360)),0)
  2194. c.BrickColor = BrickColor.new("Dark stone grey")
  2195. local light = Instance.new("PointLight", c)
  2196. light.Brightness = 2
  2197. light.Range = 7
  2198. light.Color = Color3.new(1,0.8,0.1)
  2199. local mesh = Instance.new("CylinderMesh",c)
  2200. mesh.Scale = Vector3.new(0.2,0.4,0.2) *5
  2201. if not anchor then
  2202. local newpos = target.CFrame:toObjectSpace(c.CFrame)
  2203. local w = Instance.new("Weld",c)
  2204. w.Part0 = target
  2205. w.Part1 = c
  2206. w.C0 = newpos
  2207. end
  2208.  
  2209. local tabl = {}
  2210. for i = 1, 3 do
  2211. local p = P:Clone()
  2212. p.Parent = m
  2213. p.Anchored = anchor
  2214. p.CFrame = c.CFrame * CFrame.Angles(0,math.pi*2/3*i,0) * CFrame.new(0,0.04,-0.12) * CFrame.Angles(-math.pi/2 +0.05,0,0) * CFrame.new(0,0.55,0)
  2215. local mesh = Instance.new("SpecialMesh",p)
  2216. mesh.MeshType = "Wedge"
  2217. mesh.Scale = Vector3.new(0.15,1.2,0.16) *5
  2218. if not anchor then
  2219. local w = Instance.new("Weld",p)
  2220. w.Part0 = c
  2221. w.Part1 = p
  2222. w.C0 = CFrame.Angles(0,math.pi*2/3*i,0) * CFrame.new(0,0.04,-0.12) * CFrame.Angles(-math.pi/2 +0.05,0,0) * CFrame.new(0,0.55,0)
  2223. end
  2224.  
  2225. for j = -1,1,2 do
  2226. local p = P:Clone()
  2227. p.Parent = m
  2228. p.Anchored = anchor
  2229. p.Transparency = 0.6
  2230. p.BrickColor = BrickColor.new("Bright yellow")
  2231. p.CFrame = c.CFrame * CFrame.new(0,0.2,0) * CFrame.Angles(0,math.pi*2/3*i,0) * CFrame.new(0.32*j,0,-0.55) * CFrame.Angles(0.06,0,-math.pi/2*j)
  2232. local mesh = Instance.new("SpecialMesh",p)
  2233. mesh.MeshType = "Wedge"
  2234. mesh.Scale = Vector3.new(0.03,0.6,1.1) *5
  2235. if not anchor then
  2236. local w = Instance.new("Weld",p)
  2237. w.Part0 = c
  2238. w.Part1 = p
  2239. w.C0 = CFrame.new(0,0.2,0) * CFrame.Angles(0,math.pi*2/3*i,0) * CFrame.new(0.32*j,0,-0.55) * CFrame.Angles(0.06,0,-math.pi/2*j)
  2240. end
  2241. table.insert(tabl,p)
  2242. end
  2243. end
  2244.  
  2245. table.insert(Traps,{m,c,tabl,0,light})
  2246. end
  2247.  
  2248. function Build()
  2249. for i, v in pairs(char:children()) do
  2250. if v.className == "Model" and (v.Name == "" or v.Name == "Trap" or v.Name == "TrapProjectile") then
  2251. v:Destroy()
  2252. end
  2253. end
  2254. local mdl = Instance.new("Model", char)
  2255. mdl.Name = ""
  2256.  
  2257. end
  2258. Build()
  2259.  
  2260. function Throw(aim)
  2261. local mdl = Instance.new("Model",char)
  2262. mdl.Name = "TrapProjectile"
  2263. local p = P:Clone()
  2264. p.Parent = mdl
  2265. p.Anchored = true
  2266. p.Size = Vector3.new(0.5,0.5,1.5)
  2267. p.CFrame = CFrame.new(Torsoz.Position,Torsoz.Position+aim)
  2268. table.insert(Projectiles,{mdl,p,aim,0.05})
  2269. end
  2270.  
  2271. function JumbleBolt(bolt)
  2272. local lastpos = bolt[2][3]
  2273. for i, v in pairs(bolt) do
  2274. if i == 1 then
  2275. bolt[1] = bolt[1] - 1
  2276. else
  2277. local point = v[4] * CFrame.new(math.random(-100,100)*v[5]/200,math.random(-100,100)*v[5]/200,0)
  2278. v[1].CFrame = CFrame.new((lastpos+point.p)/2,point.p)
  2279. v[2].Scale = Vector3.new(0.1,0.1,(lastpos-point.p).magnitude) *5
  2280. lastpos = point.p
  2281. end
  2282. end
  2283. end
  2284.  
  2285. function Bolt(par,start,endpos,jumble)
  2286. jumble = jumble or 8
  2287. local dist = (start - endpos).magnitude
  2288. if dist < 200 then
  2289. local tab = {jumble}
  2290. local dir = (endpos - start).unit
  2291. local jump = dist/math.floor(dist)
  2292. local lastpos = start
  2293. local lastraw
  2294. for i = 1, math.floor(dist) do
  2295. local rawpoint = CFrame.new(start,endpos) + dir*jump*i
  2296. local point = rawpoint
  2297. if i ~= math.floor(dist) then
  2298. point = point * CFrame.new(math.random(-100,100)*jump/200,math.random(-100,100)*jump/200,0)
  2299. end
  2300. local p = P:Clone()
  2301. p.Parent = par
  2302. p.Anchored = true
  2303. p.BrickColor = BrickColor.new("Royal purple")
  2304. p.CFrame = CFrame.new((lastpos+point.p)/2,point.p)
  2305. local mesh = Instance.new("BlockMesh",p)
  2306. mesh.Scale = Vector3.new(0.1,0.1,(lastpos-point.p).magnitude) *5
  2307. game:GetService("Debris"):AddItem(p,5)
  2308. table.insert(tab,{p,mesh,start,rawpoint,jump})
  2309. lastpos = point.p
  2310. lastraw = rawpoint
  2311. end
  2312. table.insert(Bolts,tab)
  2313. end
  2314. end
  2315.  
  2316. function Explode(pos,bolts)
  2317. local mdl = Instance.new("Model",char)
  2318. mdl.Name = "Explosion"
  2319. local p = P:Clone()
  2320. p.Parent = mdl
  2321. p.Anchored = true
  2322. p.CanCollide = false
  2323. p.CFrame = CFrame.new(pos)
  2324. local l = Instance.new("PointLight",p)
  2325. l.Color = Color3.new(0.5,0.1,1)
  2326. l.Range = 10
  2327. l.Brightness = 2
  2328. game:GetService("Debris"):AddItem(mdl,0.7)
  2329. for i, v in pairs(game:GetService("Players"):GetChildren()) do
  2330. if v.Character ~= nil then
  2331. if v.Character:findFirstChild("Torso") and v.Character:findFirstChild("Humanoid") then
  2332. if (v.Character.Torso.Position - pos).magnitude < 6.5 then
  2333. v.Character.Humanoid:TakeDamage(math.random(30,45))
  2334. end
  2335. end
  2336. end
  2337. end
  2338. for i = 1, bolts do
  2339. local dist = math.random(38,64) /10
  2340. local dir = Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50)).unit
  2341. Bolt(mdl,pos,pos+dir*dist)
  2342. end
  2343. end
  2344.  
  2345. function Detonate()
  2346. for i, v in pairs(Traps) do
  2347. Explode(v[2].Position,10)
  2348. v[1]:Destroy()
  2349. Traps[i] = nil
  2350. end
  2351. end
  2352.  
  2353. function B1D(mouse)
  2354. --[[if mouse.Target and #Traps < 6 then
  2355. CreateTrap(mouse.Hit.p,mouse.Target)
  2356. end ]]
  2357. if #Traps + #Projectiles < 6 then
  2358. Throw((mouse.Hit.p - Torsoz.Position).unit)
  2359. end
  2360. --Bolt(char,Torsoz.Position,mouse.Hit.p)
  2361. --Explode(mouse.Hit.p,10)
  2362. end
  2363.  
  2364. function KD(key, mouse)
  2365. if key == "e" then
  2366. Detonate()
  2367. --[[elseif key == "r" then
  2368. for i, v in pairs(Traps) do
  2369. v[1]:Destroy()
  2370. Traps[i] = nil
  2371. end ]]
  2372. end
  2373. end
  2374.  
  2375. function Equip()
  2376. end
  2377.  
  2378. function Unequip()
  2379. end
  2380.  
  2381. bin.Selected:connect(function(mouse)
  2382. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  2383. mouse.Button1Down:connect(function() B1D(mouse) end)
  2384. mouse.KeyDown:connect(function(key) KD(key, mouse) end)
  2385. end)
  2386.  
  2387. bin.Deselected:connect(function()
  2388. end)
  2389.  
  2390. local jumpcount = 0
  2391. game:GetService("RunService").Stepped:connect(function()
  2392. jumpcount = (jumpcount%2) + 1
  2393. for i, trap in pairs(Traps) do
  2394. trap[4] = (trap[4] + 1) %2
  2395. if trap[4] == 0 then
  2396. local randum = math.random()
  2397. local zaptrans = 0.3 + 0.45*randum
  2398. trap[5].Brightness = 0.8 + 2.8*randum --math.random(-65,60)/100
  2399. for j, v in pairs(trap[3]) do
  2400. v.Transparency = zaptrans
  2401. end
  2402. end
  2403. end
  2404.  
  2405. for i, proj in pairs(Projectiles) do
  2406. local spd = (proj[3]*3) + Vector3.new(0,proj[4],0)
  2407. local hitz,enz = RAY(proj[2].Position,spd)
  2408. if hitz then
  2409. proj[1]:Destroy()
  2410. CreateTrap(hitz,enz)
  2411. table.remove(Projectiles,i)
  2412. else
  2413. proj[2].CFrame = CFrame.new(NV,spd) + proj[2].Position + spd
  2414. proj[4] = proj[4] - 0.05
  2415. end
  2416. end
  2417.  
  2418. if jumpcount == 1 then
  2419. for i, bolt in pairs(Bolts) do
  2420. JumbleBolt(bolt)
  2421. if bolt[1] <= 0 then
  2422. for j, v in pairs(bolt) do
  2423. if j ~= 1 then
  2424. v[1]:Destroy()
  2425. end
  2426. end
  2427. table.remove(Bolts,i)
  2428. end
  2429. end
  2430. end
  2431. end)
  2432. local p = game.Players.LocalPlayer
  2433. local plr = game.Players.LocalPlayer
  2434. local chr = plr.Character
  2435. local maus = plr:GetMouse()
  2436. local PGui=plr.PlayerGui
  2437. local lleg = chr["Left Leg"]
  2438. local rleg = chr["Right Leg"]
  2439. local larm = chr["Left Arm"]
  2440. local rarm = chr["Right Arm"]
  2441. local hed = chr.Head
  2442. local rutprt = chr.HumanoidRootPart
  2443. local torso = chr.Torso
  2444. local otheranims=false
  2445. local armmovement=false
  2446. local equipped=false
  2447. chr.Animate.Disabled=true
  2448. local RunSpeed=40
  2449. local WlkSpeed=20
  2450. local CrawlSpeed=10
  2451. local CrawlDashSpeed=20
  2452. local runnin=false
  2453. local tik=0
  2454. local fldb={['w']=false,['a']=false,['s']=false,['d']=false}
  2455. local Meows={"60871617","151742282","138093919"}
  2456. local leftnekoface="260195370"
  2457. local rightnekoface="260196558"
  2458. local swing="Right"
  2459. local armanim=""
  2460. local hitdb=false
  2461.  
  2462. local RightNekoColor=BrickColor.new("Really black")
  2463. local LeftNekoColor=BrickColor.new("Institutional white")
  2464.  
  2465.  
  2466.  
  2467. coroutine.wrap(function()
  2468. for i,x in pairs(hed:GetChildren()) do if x:IsA('Sound') then x:Destroy() end end end)()
  2469. function Lerp(a, b, i)
  2470. local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
  2471. local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
  2472. local calx = com1[1] + (com2[1] - com1[1]) * i
  2473. local caly = com1[2] + (com2[2] - com1[2]) * i
  2474. local calz = com1[3] + (com2[3] - com1[3]) * i
  2475. local cala = com1[4] + (com2[4] - com1[4]) * i
  2476. local calb = com1[5] + (com2[5] - com1[5]) * i
  2477. local calc = com1[6] + (com2[6] - com1[6]) * i
  2478. return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
  2479. end
  2480. function TwnSingleNumber(s,f,m)
  2481. local wot=s+(f-s)*m
  2482. return wot
  2483. end
  2484. function TwnVector3(q,w,e)
  2485. local begin={q.x,q.y,q.z}
  2486. local ending={w.x,w.y,w.z}
  2487. local bgx=begin[1]+(ending[1]-begin[1])*e
  2488. local bgy=begin[2]+(ending[2]-begin[2])*e
  2489. local bgz=begin[3]+(ending[3]-begin[3])*e
  2490. return Vector3.new(bgx,bgy,bgz)
  2491. end
  2492. newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z)
  2493. wld = Instance.new("Weld", wp1)
  2494. wld.Part0 = wp0
  2495. wld.Part1 = wp1
  2496. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  2497. end
  2498. function Avg(a, b)
  2499. return CFrame.new((a.X+b.X)/2,(a.Y+b.Y)/2,(a.Z+b.Z)/2)
  2500. end
  2501.  
  2502. newWeld(law, torso, larm, -1.5, 0.5, 0)
  2503. newWeld(raw, torso, rarm, 1.5, 0.5, 0)
  2504. newWeld(llw, torso, lleg, -.5, -2, 0)
  2505. newWeld(rlw, torso, rleg, .5, -2, 0)
  2506. newWeld(hw, torso, hed, 0, 1.5, 0)
  2507. local rutwald=Instance.new('Weld',rutprt)
  2508. rutwald.Part0=rutprt
  2509. rutwald.Part1=torso
  2510. rutwald.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0)
  2511. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  2512. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  2513. rleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  2514. lleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  2515.  
  2516.  
  2517. local anim = "Idling"
  2518. local lastanim = "Idling"
  2519. local val = 0
  2520. local syne = 0
  2521. local num = 0
  2522. local runtime = 0
  2523.  
  2524.  
  2525.  
  2526.  
  2527. local NekoNekoKnuckles=Instance.new("Model",chr)
  2528. NekoNekoKnuckles.Name="Neko Neko Knuckles"
  2529. local RightNeko=Instance.new("Model",NekoNekoKnuckles)
  2530. RightNeko.Name="Right Neko"
  2531. local LeftNeko=Instance.new("Model",NekoNekoKnuckles)
  2532. LeftNeko.Name="Left Neko"
  2533.  
  2534.  
  2535.  
  2536.  
  2537.  
  2538.  
  2539. --[[ Right Neko ]]--
  2540.  
  2541.  
  2542.  
  2543.  
  2544.  
  2545. local rn1=Instance.new("Part",RightNeko)
  2546. rn1.Name="RightHandle"
  2547. rn1.Material="SmoothPlastic"
  2548. rn1.TopSurface=10
  2549. rn1.BottomSurface=10
  2550. rn1.LeftSurface=10
  2551. rn1.RightSurface=10
  2552. rn1.FrontSurface=10
  2553. rn1.BackSurface=10
  2554. rn1.BrickColor=RightNekoColor
  2555. rn1.formFactor=3
  2556. rn1.Size=Vector3.new(1.1,1.3,1.1)
  2557. rn1.CanCollide=false
  2558. rn1:breakJoints''
  2559. local rn1w=Instance.new("Weld",rn1)
  2560. rn1w.Part0=rn1
  2561. rn1w.Part1=rarm
  2562. rn1w.C0=CFrame.new(0,.4,0)
  2563.  
  2564. local rn2=Instance.new("Part",RightNeko)
  2565. rn2.Name="RightHandle"
  2566. rn2.Material="SmoothPlastic"
  2567. rn2.TopSurface=10
  2568. rn2.BottomSurface=10
  2569. rn2.LeftSurface=10
  2570. rn2.RightSurface=10
  2571. rn2.FrontSurface=10
  2572. rn2.BackSurface=10
  2573. rn2.BrickColor=RightNekoColor
  2574. rn2.formFactor=3
  2575. rn2.Size=Vector3.new(1.2,.4,1.2)
  2576. rn2.CanCollide=false
  2577. rn2:breakJoints''
  2578. local rn2w=Instance.new("Weld",rn2)
  2579. rn2w.Part0=rn2
  2580. rn2w.Part1=rarm
  2581. rn2w.C0=CFrame.new(0,-.1,0)
  2582.  
  2583. local rnbell=Instance.new("Part",RightNeko)
  2584. rnbell.Name="RightBell"
  2585. rnbell.Material="SmoothPlastic"
  2586. rnbell.TopSurface=10
  2587. rnbell.BottomSurface=10
  2588. rnbell.LeftSurface=10
  2589. rnbell.RightSurface=10
  2590. rnbell.FrontSurface=10
  2591. rnbell.BackSurface=10
  2592. rnbell.BrickColor=BrickColor.new("New Yeller")
  2593. rnbell.Reflectance=.6
  2594. rnbell.formFactor=3
  2595. rnbell.Size=Vector3.new(.45,.45,.45)
  2596. rnbell.CanCollide=false
  2597. rnbell:breakJoints''
  2598. local rnbellw=Instance.new("Weld",rnbell)
  2599. rnbellw.Part0=rnbell
  2600. rnbellw.Part1=rarm
  2601. rnbellw.C0=CFrame.new(0,.3,.65)
  2602. local rnbellm=Instance.new("SpecialMesh",rnbell)
  2603. rnbellm.MeshType="Sphere"
  2604.  
  2605. local rnbf=Instance.new("PointLight",rnbell)
  2606. rnbf.Shadows=true
  2607. rnbf.Range=15
  2608. rnbf.Brightness=0
  2609.  
  2610. local rnding=Instance.new("Sound",rnbell)
  2611. rnding.SoundId="http://www.roblox.com/asset?id=138134386"
  2612. rnding.Volume=.2
  2613.  
  2614. local rn3=Instance.new("Part",RightNeko)
  2615. rn3.Name="RightHead"
  2616. rn3.Material="SmoothPlastic"
  2617. rn3.TopSurface=10
  2618. rn3.BottomSurface=10
  2619. rn3.LeftSurface=10
  2620. rn3.RightSurface=10
  2621. rn3.FrontSurface=10
  2622. rn3.BackSurface=10
  2623. rn3.BrickColor=RightNekoColor
  2624. rn3.formFactor=3
  2625. rn3.Size=Vector3.new(1.575,1.65,1.575)
  2626. rn3.CanCollide=false
  2627. rn3:breakJoints''
  2628. local rn3w=Instance.new("Weld",rn3)
  2629. rn3w.Part0=rn3
  2630. rn3w.Part1=rarm
  2631. rn3w.C0=CFrame.new(0,.95,0)
  2632. local rn3m=Instance.new("SpecialMesh",rn3)
  2633. rn3m.MeshType="Sphere"
  2634.  
  2635. local rnface=Instance.new("Decal",rn3)
  2636. rnface.Texture="http://www.roblox.com/asset?id="..rightnekoface
  2637. rnface.Face="Bottom"
  2638.  
  2639. local rnpunch=Instance.new("Sound",rn3)
  2640. rnpunch.SoundId="http://www.roblox.com/asset?id=146163534"
  2641. rnpunch.Volume=.3
  2642.  
  2643. rn3.Touched:connect(function(hit)
  2644. if hit and swing=="Right" and crawling and armmovement and crawldig then
  2645. local j=2
  2646. for jx=-j,j,4 do
  2647. for jy=-j,j,4 do
  2648. for jz=-j,j,4 do
  2649. local spot=workspace.Terrain:WorldToCell(rn3.CFrame*CFrame.new(0,0,-2).p+Vector3.new(jx,jy,jz))
  2650. workspace.Terrain:SetCell(spot.x,spot.y,spot.z,0,0,0)
  2651. end
  2652. end
  2653. end
  2654. end
  2655. coroutine.wrap(function()
  2656. if hit and swing=="Right" and armmovement then
  2657. coroutine.resume(coroutine.create(function()
  2658. local j=2
  2659. for jx=-j,j,4 do
  2660. for jy=-j,j,4 do
  2661. for jz=-j,j,4 do
  2662. local spot=workspace.Terrain:WorldToCell(rn3.CFrame*CFrame.new(0,0,-2).p+Vector3.new(jx,jy,jz))
  2663. workspace.Terrain:SetCell(spot.x,spot.y,spot.z,0,0,0)
  2664. end
  2665. end
  2666. end
  2667. end))
  2668. if hit.Parent then
  2669. for i,x in pairs(hit.Parent:GetChildren()) do if x:IsA('Humanoid') then hyoom=x end end
  2670. local hawm=hit.Parent and hyoom and hit.Parent.Parent
  2671. if hawm and hit.Parent.ClassName=='Model' and hit.Parent~=chr and not hitdb then
  2672. hitdb=true
  2673. local nyaa=Instance.new("Sound",rn3)
  2674. nyaa.SoundId="http://www.roblox.com/asset?id="..Meows[math.random(1,#Meows)]
  2675. nyaa:Play''
  2676. rnpunch:Play''
  2677. game:service'Debris':AddItem(nyaa,2)
  2678. if hyoom.Parent and hyoom.Parent:findFirstChild("Torso") then
  2679. local asd=Instance.new("BodyVelocity",hyoom.Parent.Torso)
  2680. asd.maxForce=Vector3.new(1/0,1/0,1/0)
  2681. asd.velocity=((rn3.CFrame.p-hyoom.Parent.Torso.CFrame.p).unit*-20)+Vector3.new(0,10,0)
  2682. game:service'Debris':AddItem(asd,.2)
  2683. end
  2684. hyoom.Sit=true
  2685. if crawling then
  2686. hyoom.Health=hyoom.Health-(math.random(15,20)*(hyoom.MaxHealth/100))
  2687. wait(.5)
  2688. hitdb=false
  2689. else
  2690. hyoom.Health=hyoom.Health-(math.random(20,40)*(hyoom.MaxHealth/100))
  2691. wait(1)
  2692. hitdb=false
  2693. end
  2694. end
  2695. end
  2696. end
  2697. end)()
  2698. end)
  2699.  
  2700. local rn4=Instance.new("Part",RightNeko)
  2701. rn4.Name="RightHandle"
  2702. rn4.Material="SmoothPlastic"
  2703. rn4.TopSurface=10
  2704. rn4.BottomSurface=10
  2705. rn4.LeftSurface=10
  2706. rn4.RightSurface=10
  2707. rn4.FrontSurface=10
  2708. rn4.BackSurface=10
  2709. rn4.BrickColor=RightNekoColor
  2710. rn4.formFactor=3
  2711. rn4.Size=Vector3.new(1.575,.2,1.575)
  2712. rn4.CanCollide=false
  2713. rn4:breakJoints''
  2714. local rn4w=Instance.new("Weld",rn4)
  2715. rn4w.Part0=rn4
  2716. rn4w.Part1=rn3
  2717. rn4w.C0=CFrame.new(0,-.75,.15)*CFrame.Angles(math.rad(90),0,0)
  2718. local rn4m=Instance.new("SpecialMesh",rn4)
  2719. rn4m.Scale=Vector3.new(1.2,1.2,1.2)
  2720. rn4m.MeshId="http://www.roblox.com/asset?id=1374148"
  2721. rn4m.TextureId="http://www.roblox.com/asset?id=1374132"
  2722.  
  2723.  
  2724.  
  2725.  
  2726.  
  2727.  
  2728.  
  2729.  
  2730.  
  2731.  
  2732.  
  2733. local ln1=Instance.new("Part",LeftNeko)
  2734. ln1.Name="LeftHandle"
  2735. ln1.Material="SmoothPlastic"
  2736. ln1.TopSurface=10
  2737. ln1.BottomSurface=10
  2738. ln1.LeftSurface=10
  2739. ln1.RightSurface=10
  2740. ln1.FrontSurface=10
  2741. ln1.BackSurface=10
  2742. ln1.BrickColor=LeftNekoColor
  2743. ln1.formFactor=3
  2744. ln1.Size=Vector3.new(1.1,1.3,1.1)
  2745. ln1.CanCollide=false
  2746. ln1:breakJoints''
  2747. local ln1w=Instance.new("Weld",ln1)
  2748. ln1w.Part0=ln1
  2749. ln1w.Part1=larm
  2750. ln1w.C0=CFrame.new(0,.4,0)
  2751.  
  2752. local ln2=Instance.new("Part",LeftNeko)
  2753. ln2.Name="LeftHandle"
  2754. ln2.Material="SmoothPlastic"
  2755. ln2.TopSurface=10
  2756. ln2.BottomSurface=10
  2757. ln2.LeftSurface=10
  2758. ln2.RightSurface=10
  2759. ln2.FrontSurface=10
  2760. ln2.BackSurface=10
  2761. ln2.BrickColor=LeftNekoColor
  2762. ln2.formFactor=3
  2763. ln2.Size=Vector3.new(1.2,.4,1.2)
  2764. ln2.CanCollide=false
  2765. ln2:breakJoints''
  2766. local ln2w=Instance.new("Weld",ln2)
  2767. ln2w.Part0=ln2
  2768. ln2w.Part1=larm
  2769. ln2w.C0=CFrame.new(0,-.1,0)
  2770.  
  2771. local lnbell=Instance.new("Part",LeftNeko)
  2772. lnbell.Name="LeftBell"
  2773. lnbell.Material="SmoothPlastic"
  2774. lnbell.TopSurface=10
  2775. lnbell.BottomSurface=10
  2776. lnbell.LeftSurface=10
  2777. lnbell.RightSurface=10
  2778. lnbell.FrontSurface=10
  2779. lnbell.BackSurface=10
  2780. lnbell.BrickColor=BrickColor.new("New Yeller")
  2781. lnbell.Reflectance=.6
  2782. lnbell.formFactor=3
  2783. lnbell.Size=Vector3.new(.45,.45,.45)
  2784. lnbell.CanCollide=false
  2785. lnbell:breakJoints''
  2786. local lnbellw=Instance.new("Weld",lnbell)
  2787. lnbellw.Part0=lnbell
  2788. lnbellw.Part1=larm
  2789. lnbellw.C0=CFrame.new(0,.3,.65)
  2790. local lnbellm=Instance.new("SpecialMesh",lnbell)
  2791. lnbellm.MeshType="Sphere"
  2792.  
  2793. local lnbf=Instance.new("PointLight",lnbell)
  2794. lnbf.Shadows=true
  2795. lnbf.Range=15
  2796. lnbf.Brightness=0
  2797.  
  2798. local lnding=Instance.new("Sound",lnbell)
  2799. lnding.SoundId="http://www.roblox.com/asset?id=138134386"
  2800. lnding.Volume=.2
  2801.  
  2802. local ln3=Instance.new("Part",LeftNeko)
  2803. ln3.Name="LeftHead"
  2804. ln3.Material="SmoothPlastic"
  2805. ln3.TopSurface=10
  2806. ln3.BottomSurface=10
  2807. ln3.LeftSurface=10
  2808. ln3.RightSurface=10
  2809. ln3.FrontSurface=10
  2810. ln3.BackSurface=10
  2811. ln3.BrickColor=LeftNekoColor
  2812. ln3.formFactor=3
  2813. ln3.Size=Vector3.new(1.575,1.65,1.575)
  2814. ln3.CanCollide=false
  2815. ln3:breakJoints''
  2816. local ln3w=Instance.new("Weld",ln3)
  2817. ln3w.Part0=ln3
  2818. ln3w.Part1=larm
  2819. ln3w.C0=CFrame.new(0,.95,0)
  2820. local ln3m=Instance.new("SpecialMesh",ln3)
  2821. ln3m.MeshType="Sphere"
  2822.  
  2823. local lnface=Instance.new("Decal",ln3)
  2824. lnface.Texture="http://www.roblox.com/asset?id="..leftnekoface
  2825. lnface.Face="Bottom"
  2826.  
  2827.  
  2828. local lnpunch=Instance.new("Sound",ln3)
  2829. lnpunch.SoundId="http://www.roblox.com/asset?id=146163534"
  2830. lnpunch.Volume=.3
  2831.  
  2832. ln3.Touched:connect(function(hit)
  2833. if hit and swing=="Left" and crawling and armmovement and crawldig then
  2834. local j=2
  2835. for jx=-j,j,4 do
  2836. for jy=-j,j,4 do
  2837. for jz=-j,j,4 do
  2838. local spot=workspace.Terrain:WorldToCell(ln3.CFrame*CFrame.new(0,0,-2).p+Vector3.new(jx,jy,jz))
  2839. workspace.Terrain:SetCell(spot.x,spot.y,spot.z,0,0,0)
  2840. end
  2841. end
  2842. end
  2843. end
  2844. coroutine.wrap(function()
  2845. if hit and swing=="Left" and armmovement then
  2846. coroutine.resume(coroutine.create(function()
  2847. local j=2
  2848. for jx=-j,j,4 do
  2849. for jy=-j,j,4 do
  2850. for jz=-j,j,4 do
  2851. local spot=workspace.Terrain:WorldToCell(ln3.CFrame*CFrame.new(0,0,-2).p+Vector3.new(jx,jy,jz))
  2852. workspace.Terrain:SetCell(spot.x,spot.y,spot.z,0,0,0)
  2853. end
  2854. end
  2855. end
  2856. end))
  2857. if hit.Parent then
  2858. for i,x in pairs(hit.Parent:GetChildren()) do if x:IsA('Humanoid') then hyoom=x end end
  2859. local hawm=hit.Parent and hyoom and hit.Parent.Parent
  2860. if hawm and hit.Parent.ClassName=='Model' and hit.Parent~=chr and not hitdb then
  2861.  
  2862. hitdb=true
  2863. local nyaa=Instance.new("Sound",rn3)
  2864. nyaa.SoundId="http://www.roblox.com/asset?id="..Meows[math.random(1,#Meows)]
  2865. nyaa:Play''
  2866. rnpunch:Play''
  2867. game:service'Debris':AddItem(nyaa,3)
  2868. if hyoom.Parent:findFirstChild("Torso") then
  2869. local asd=Instance.new("BodyVelocity",hyoom.Parent.Torso)
  2870. asd.maxForce=Vector3.new(1/0,1/0,1/0)
  2871. asd.velocity=((ln3.CFrame.p-hyoom.Parent.Torso.CFrame.p).unit*-20)+Vector3.new(0,10,0)
  2872. game:service'Debris':AddItem(asd,.2)
  2873. end
  2874. hyoom.Sit=true
  2875. if crawling then
  2876. hyoom.Health=hyoom.Health-(math.random(15,20)*(hyoom.MaxHealth/100))
  2877. wait(.5)
  2878. hitdb=false
  2879. else
  2880. hyoom.Health=hyoom.Health-(math.random(20,40)*(hyoom.MaxHealth/100))
  2881. wait(1)
  2882. hitdb=false
  2883. end
  2884. end
  2885. end
  2886. end
  2887. end)()
  2888. end)
  2889.  
  2890. local ln4=Instance.new("Part",LeftNeko)
  2891. ln4.Name="LeftHandle"
  2892. ln4.Material="SmoothPlastic"
  2893. ln4.TopSurface=10
  2894. ln4.BottomSurface=10
  2895. ln4.LeftSurface=10
  2896. ln4.RightSurface=10
  2897. ln4.FrontSurface=10
  2898. ln4.BackSurface=10
  2899. ln4.BrickColor=LeftNekoColor
  2900. ln4.formFactor=3
  2901. ln4.Size=Vector3.new(1.575,.2,1.575)
  2902. ln4.CanCollide=false
  2903. ln4:breakJoints''
  2904. local ln4w=Instance.new("Weld",ln4)
  2905. ln4w.Part0=ln4
  2906. ln4w.Part1=ln3
  2907. ln4w.C0=CFrame.new(0,-.75,.15)*CFrame.Angles(math.rad(90),0,0)
  2908. local ln4m=Instance.new("SpecialMesh",ln4)
  2909. ln4m.Scale=Vector3.new(1.2,1.2,1.2)
  2910. ln4m.MeshId="http://www.roblox.com/asset?id=1374148"
  2911. ln4m.TextureId="http://www.roblox.com/asset?id=59596104"
  2912.  
  2913.  
  2914.  
  2915.  
  2916.  
  2917.  
  2918.  
  2919. maus.KeyDown:connect(function(kei)
  2920. if string.byte(kei)==48 and not otheranims and not sitting and not disabled then
  2921. runnin=true
  2922. end
  2923. if string.byte(kei)==48 and crawling and not sitting and not disabled then
  2924. crawldash=true
  2925. end
  2926. if kei=='w' then fldb.w=true end
  2927. if kei=='a' then fldb.a=true end
  2928. if kei=='s' then fldb.s=true end
  2929. if kei=='d' then fldb.d=true end
  2930.  
  2931.  
  2932. if string.byte(kei)==50 and not crawling then
  2933. if crouching then
  2934. otheranims=false
  2935. crouching=false
  2936. chr.Humanoid.WalkSpeed=18
  2937. elseif not crouching and not otheranims then
  2938. otheranims=true
  2939. crouching=true
  2940. anim="Crouching"
  2941. end
  2942. end
  2943.  
  2944. if kei=='j' and not otheranims and not armmovement and not disabled and not lit then
  2945. otheranims=true
  2946. anim="PreSuperJump"
  2947. chr.Humanoid.WalkSpeed=0
  2948. jumpcharge=true
  2949. end
  2950.  
  2951. if kei=='c' and not armmovement and not sitting and not disabled then
  2952. if (torso.Velocity*Vector3.new(1,0,1)).magnitude>=RunSpeed-2.5 and not otheranims and not crawling then
  2953. otheranims=true
  2954. anim="Sliding"
  2955. local tempvelocity=Instance.new('BodyVelocity',rutprt)
  2956. tempvelocity.Name="TemporaryVelocity"
  2957. tempvelocity.maxForce=Vector3.new(math.huge,0,math.huge)
  2958. tempvelocity.velocity=((rutprt.CFrame*CFrame.new(0,0,-1)).p-rutprt.CFrame.p).unit*RunSpeed
  2959. coroutine.resume(coroutine.create(function()
  2960. local totesvelocity=RunSpeed
  2961. repeat
  2962. if (tempvelocity.velocity*Vector3.new(1,1,1)).magnitude<=1 then otheranims=false tempvelocity:destroy''
  2963. elseif (tempvelocity.velocity*Vector3.new(1,1,1)).magnitude>1 then
  2964. totesvelocity=totesvelocity-(2.5*(RunSpeed/100))
  2965. tempvelocity.velocity=((rutprt.CFrame*CFrame.new(0,0,-1)).p-rutprt.CFrame.p).unit*totesvelocity
  2966. end
  2967. wait''
  2968. until tempvelocity.Parent==nil
  2969. end))
  2970. elseif (torso.Velocity*Vector3.new(1,0,1)).magnitude<=RunSpeed-2.5 then
  2971. if not crawling then otheranims=true anim='PreCrawl' wait'.2' crawling=true chr.Humanoid.WalkSpeed=8
  2972. elseif crawling then crawling=false otheranims=false chr.Humanoid.WalkSpeed=WlkSpeed end
  2973. end
  2974. end
  2975. end)
  2976. maus.KeyUp:connect(function(kei)
  2977. if string.byte(kei)==48 and not otheranims and not sitting and not disabled then
  2978. runnin=false
  2979. end
  2980. if string.byte(kei)==48 and crawling then
  2981. crawldash=false
  2982. end
  2983. if kei=='w' then fldb.w=false end
  2984. if kei=='a' then fldb.a=false end
  2985. if kei=='s' then fldb.s=false end
  2986. if kei=='d' then fldb.d=false end
  2987. if kei=="c" and rutprt:findFirstChild("TemporaryVelocity") and otheranims then
  2988. otheranims=false
  2989. rutprt["TemporaryVelocity"]:destroy''
  2990. end
  2991.  
  2992. if kei=='j' and otheranims and jumpcharge then
  2993. if running then chr.Humanoid.WalkSpeed=RunSpeed else chr.Humanoid.WalkSpeed=WlkSpeed end
  2994. chr.Humanoid.Jump=true
  2995. anim="SuperJump"
  2996. local aasdd=Instance.new("BodyVelocity",rutprt)
  2997. aasdd.maxForce=Vector3.new(0,1/0,0)
  2998. aasdd.velocity=Vector3.new(0,jumpheight,0)
  2999. game:service'Debris':AddItem(aasdd,.175)
  3000. jumpcharge=false
  3001. wait(.3)
  3002. otheranims=false
  3003. end
  3004. end)
  3005.  
  3006. maus.Button1Down:connect(function()
  3007. if not sitting and not disabled and not armmovement and equipped and crawling then
  3008. crawldig=true
  3009. armmovement=true
  3010. armanim="Digging"
  3011. end
  3012. if not otheranims and not sitting and not disabled and not armmovement and equipped then
  3013. armmovement=true
  3014. armanim=swing.."Swing1"
  3015. wait(.25)
  3016. armanim=swing.."Swing2"
  3017. if swing=="Right" then
  3018. rnding:Play()
  3019. coroutine.resume(coroutine.create(function()
  3020. wait(.65)
  3021. rnding:Stop()
  3022. end))
  3023. else
  3024. lnding:Play()
  3025. coroutine.resume(coroutine.create(function()
  3026. wait(.65)
  3027. lnding:Stop()
  3028. end))
  3029. end
  3030. wait(.3)
  3031. armmovement=false
  3032. if swing=="Right" then swing="Left"
  3033. else
  3034. swing="Right"
  3035. end
  3036. end
  3037. end)
  3038.  
  3039. maus.Button1Up:connect(function()
  3040. if armmovement and crawldig then
  3041. crawldig=false
  3042. armmovement=false
  3043. end
  3044. end)
  3045.  
  3046.  
  3047.  
  3048. chr.Humanoid.Changed:connect(function(chng)
  3049. if crouching or crawling or disabled then
  3050. if chng=='Jump' then
  3051. chr.Humanoid.Jump=false
  3052. end
  3053. end
  3054. end)
  3055.  
  3056.  
  3057.  
  3058.  
  3059.  
  3060.  
  3061.  
  3062.  
  3063.  
  3064.  
  3065.  
  3066.  
  3067.  
  3068.  
  3069. game:service'RunService'.RenderStepped:connect(function()
  3070. syne=syne+1
  3071. if not otheranims and not swimming then
  3072. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and not dnc and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
  3073. anim="Idling"
  3074.  
  3075. elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude < RunSpeed-5 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
  3076. anim="Walking"
  3077. dnc=false
  3078.  
  3079. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > RunSpeed-10 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
  3080. anim="Sprinting"
  3081. dnc=false
  3082.  
  3083. elseif torso.Velocity.y>5 and chr.Humanoid.Jump then
  3084. anim='Jumping'
  3085. dnc=false
  3086.  
  3087. elseif (torso.Velocity.y < -5) and chr.Humanoid.Jump then
  3088. anim='Falling'
  3089. dnc=false
  3090.  
  3091. end
  3092. end
  3093.  
  3094. if otheranims and crawling then
  3095. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and not chr.Humanoid.Jump then
  3096. anim="IdleCrawl"
  3097. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 12 and not chr.Humanoid.Jump then
  3098. anim="Crawling"
  3099. idled=false
  3100. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 12 and not chr.Humanoid.Jump then
  3101. anim="SpeedCrawling"
  3102. idled=false
  3103. end end
  3104.  
  3105. if anim~=lastanim then runtime=0 syne=0 end
  3106. lastanim=anim
  3107. idlesineinc=35
  3108. if anim=="Idling" then
  3109. if not armmovement and not equipped then
  3110. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(0,0,math.rad(10)),.1)
  3111. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(0,0,math.rad(-10)),.1)
  3112. elseif not armmovement and equipped then
  3113. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.2,.4+math.cos(syne/idlesineinc)/25,.1)*CFrame.Angles(math.rad(105),math.rad(-15),math.rad(-20)),.1)
  3114. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.1,.20+math.cos(syne/idlesineinc)/25,-.65)*CFrame.Angles(math.rad(90),math.rad(10),math.rad(15)),.1)
  3115. end
  3116. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(-2.5)),.1)
  3117. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(2.5)),.1)
  3118. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/idlesineinc)/50,0)*CFrame.Angles(math.cos(syne/idlesineinc)/40,0,0),.1)
  3119. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/idlesineinc)/20,0)*CFrame.Angles(math.cos(syne/idlesineinc)/35+math.rad(0),math.rad(0),math.rad(0)),.1)
  3120. end
  3121.  
  3122. if anim=="Walking" then
  3123. if not armmovement and not equipped then
  3124. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.cos(syne/6)/1.25,math.rad(5),-(math.cos(syne/6.75)/15)+math.rad(8)),.1)
  3125. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(-(math.cos(syne/6)/1.25),0,-(math.cos(syne/6.75)/15)-math.rad(8)),.1)
  3126. elseif not armmovement and equipped then
  3127. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.4,.425,-.2)*CFrame.Angles(math.rad(40),math.rad(10),math.rad(5)),.1)
  3128. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.4,.425,-.2)*CFrame.Angles(math.rad(40),math.rad(-10),math.rad(-5)),.1)
  3129. end
  3130.  
  3131. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.8-math.sin(syne/6)/8,-(math.cos(syne/6)/1.125))*CFrame.Angles(math.cos(syne/6)/1.125,0,math.rad(-2.5)),.1)
  3132. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.8+math.sin(syne/6)/8,math.cos(syne/6)/1.125)*CFrame.Angles(-(math.cos(syne/6)/1.125),0,math.rad(2.5)),.1)
  3133. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(-math.cos(syne/3)/20,0,0),.1)
  3134. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.2+math.cos(syne/3.375)/20,math.cos(syne/3)/5)*CFrame.Angles(math.cos(syne/3)/20+math.rad(-3.5),math.cos(syne/6)/8,-math.cos(syne/6)/30+math.sin(rutprt.RotVelocity.y/2)/7.5),.1)
  3135. end
  3136.  
  3137. if anim=="Sprinting" then
  3138. if not armmovement and not equipped then
  3139. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,math.cos(syne/4)/15)*CFrame.Angles(-math.cos(syne/2.5)/5+math.rad(-55),0,math.rad(12.5)),.1)
  3140. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,-math.cos(syne/4)/15)*CFrame.Angles(-math.cos(syne/2.5)/5+math.rad(-55),0,math.rad(-12.5)),.1)
  3141. elseif not armmovement and equipped then
  3142. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.4,.5,-.1)*CFrame.Angles(math.rad(-5),math.rad(10),math.rad(35)),.1)
  3143. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.4,.5,-.1)*CFrame.Angles(math.rad(-5),math.rad(-10),math.rad(-35)),.1)
  3144. end
  3145. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55+math.cos(syne/4)/20,-1.5-math.sin(syne/4)/2.5,-(math.cos(syne/4)*2.5)-.05)*CFrame.Angles(math.cos(syne/4)*2+math.rad(-10),0,math.rad(-2.5)),.1)
  3146. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55-math.cos(syne/4)/20,-1.5+math.sin(syne/4)/2.5,math.cos(syne/4)*2.5-.05)*CFrame.Angles(-(math.cos(syne/4)*2)+math.rad(-10),0,math.rad(2.5)),.1)
  3147. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.55+math.cos(syne/20)/50,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(20),-math.cos(syne/2.5)/8,0),.1)
  3148. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.3+math.cos(syne/2.5)/15,math.cos(syne/2.5))*CFrame.Angles(math.cos(syne/2.5)/8+math.rad(-25),math.cos(syne/2.5)/8,math.cos(syne/4)/15+math.sin(rutprt.RotVelocity.y/2)/4),.1)
  3149. end
  3150.  
  3151. if anim=="Jumping" then
  3152. if not armmovement then
  3153. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(50)),.1)
  3154. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.1)
  3155. end
  3156. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.4,0)*CFrame.Angles(math.rad(-17.5),0,math.rad(-2.5)),.1)
  3157. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.1,-.1)*CFrame.Angles(math.rad(-17.5),0,math.rad(2.5)),.1)
  3158. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(math.cos(syne/20)/40,0,0),.1)
  3159. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/20)/20,0)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),.1)
  3160. end
  3161.  
  3162. if anim=="Falling" then
  3163. if not armmovement then
  3164. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(70)),.035)
  3165. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-70)),.035)
  3166. end
  3167. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.2,0)*CFrame.Angles(math.rad(-14),0,math.rad(-2.5)),.035)
  3168. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(2.5)),.035)
  3169. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,-.3)*CFrame.Angles(math.rad(-40),0,0),.035)
  3170. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/20)/20,0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(0)),.035)
  3171. end
  3172.  
  3173. if anim=="Sliding" then
  3174. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(-20),0,math.rad(60)),.1)
  3175. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.1)
  3176. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1,-.1)*CFrame.Angles(math.rad(-17.5),0,math.rad(-2.5)),.1)
  3177. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.95,0)*CFrame.Angles(math.rad(0),0,math.rad(2.5)),.1)
  3178. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-20),math.rad(-60),0),.1)
  3179. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-1.2,0)*CFrame.Angles(math.rad(45),math.rad(85),math.rad(0)),.1)
  3180. end
  3181.  
  3182.  
  3183. if armmovement then
  3184. if armanim=="RightSwing1" then
  3185. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.4,.25+math.cos(syne/idlesineinc)/25,1.2)*CFrame.Angles(math.rad(95),math.rad(-15),math.rad(15)),.2)
  3186. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.2,.35+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(math.rad(45),math.rad(10),math.rad(10)),.2)
  3187. end
  3188. if armanim=="RightSwing2" then
  3189. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(.8,.3+math.cos(syne/idlesineinc)/25,-.8)*CFrame.Angles(math.rad(95),math.rad(15),math.rad(-15)),.5)
  3190. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.2,.45+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(math.rad(45),math.rad(10),math.rad(-10)),.5)
  3191. end
  3192. if armanim=="LeftSwing1" then
  3193. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.4,.25+math.cos(syne/idlesineinc)/25,1.2)*CFrame.Angles(math.rad(95),math.rad(10),math.rad(15)),.2)
  3194. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.2,.35+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(math.rad(45),math.rad(10),math.rad(10)),.2)
  3195. end
  3196. if armanim=="LeftSwing2" then
  3197. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-.8,.3+math.cos(syne/idlesineinc)/25,-.8)*CFrame.Angles(math.rad(95),math.rad(-15),math.rad(15)),.5)
  3198. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.2,.45+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(math.rad(45),math.rad(10),math.rad(10)),.5)
  3199. end
  3200. if armanim=="Digging" then
  3201. rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(1.25, 1.1+math.cos(syne), -.1)* CFrame.Angles(math.rad(179), 0, math.rad(-25)), 0.5)
  3202. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.25, 1.1-(math.cos(syne)), -.1) * CFrame.Angles(math.rad(179), 0, math.rad(25)), 0.5)
  3203. end
  3204. end
  3205.  
  3206. if jumpcharge and jumpheight<150 then jumpheight=jumpheight+3 elseif not jumpcharge then jumpheight=20 end
  3207.  
  3208. if anim=="PreSuperJump" then
  3209. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(50)),.06)
  3210. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.06)
  3211. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1,.3)*CFrame.Angles(math.rad(-40),0,math.rad(-2.5)),.06)
  3212. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-.6,-.65)*CFrame.Angles(math.rad(10),0,math.rad(2.5)),.06)
  3213. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,.3)*CFrame.Angles(math.rad(40),0,0),.06)
  3214. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-1.6,.2)*CFrame.Angles(math.rad(-14),math.rad(0),math.rad(0)),.06)
  3215. end
  3216.  
  3217. if anim=="SuperJump" then
  3218. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.4,.525,0)*CFrame.Angles(math.rad(-10),0,math.rad(20)),.1)
  3219. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.4,.525,0)*CFrame.Angles(math.rad(-10),0,math.rad(-20)),.1)
  3220. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.8,0)*CFrame.Angles(math.rad(-2.5),0,math.rad(-2.5)),.2)
  3221. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.8,0)*CFrame.Angles(math.rad(-2.5),0,math.rad(2.5)),.2)
  3222. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,.3)*CFrame.Angles(math.rad(30),0,0),.1)
  3223. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  3224. chr.Humanoid.Jump=true
  3225. end
  3226.  
  3227. if anim=="Crouching" then
  3228. if not armmovement then
  3229. rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(1.4, .35, -.225) * CFrame.Angles(math.rad(70), 0, math.rad(-15)), 0.075)
  3230. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4, .35, -.225) * CFrame.Angles(math.rad(70), 0, math.rad(15)), 0.075)
  3231. end
  3232. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -.55, -1) * CFrame.Angles(math.rad(40), 0, math.rad(0)), 0.075)
  3233. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -.65, -1.275) * CFrame.Angles(math.rad(60), 0, math.rad(-0)), 0.075)
  3234. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(5),0,0),.05)
  3235. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-2,0)*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)),0.075)
  3236. end
  3237.  
  3238. if anim=="PreCrawl" then
  3239. if not armmovement then
  3240. rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(1.45, .75, -.15)* CFrame.Angles(math.rad(140), 0, math.rad(-25)), 0.15)
  3241. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.45, .75, -.15) * CFrame.Angles(math.rad(140), 0, math.rad(25)), 0.15)
  3242. end
  3243. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1.6, -.1) * CFrame.Angles(math.rad(-5), 0, math.rad(0)), 0.15)
  3244. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1.6, -.1) * CFrame.Angles(math.rad(-5), 0, math.rad(-0)), 0.15)
  3245. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.35,.25)*CFrame.Angles(math.rad(72.5),0,0),.15)
  3246. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-2.2,0)*CFrame.Angles(math.rad(-80),math.rad(0),math.rad(0)),0.15)
  3247. end
  3248.  
  3249. if crawling then
  3250.  
  3251.  
  3252.  
  3253. if anim=='Crawling' then
  3254. chr.Humanoid.WalkSpeed=CrawlSpeed-math.cos(syne/5)*5
  3255. if not armmovement then
  3256. rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(1.25, 1-math.cos(syne/10)/2, -.35+math.cos(syne/10)/8) * CFrame.Angles(math.rad(155)+math.sin(syne/10)/9, 0, math.rad(-25)+math.cos(syne/10)/13),.175)
  3257. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.25, 1+math.cos(syne/10)/2, -.35-math.cos(syne/10)/8) * CFrame.Angles(math.rad(155)-math.sin(syne/10)/9, 0, math.rad(25)-math.cos(syne/10)/13), .175)
  3258. end
  3259. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.525, -1.5-math.cos(syne/10)/3, -.3+math.cos(syne/10)/10) * CFrame.Angles(math.rad(-5)-math.cos(syne/10)/9, 0, math.rad(0)-math.cos(syne/10)/15), .175)
  3260. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.525, -1.5+math.cos(syne/10)/3, -.3-math.cos(syne/10)/10) * CFrame.Angles(math.rad(-5)+math.cos(syne/10)/9, 0, math.rad(-0)-math.cos(syne/10)/15), 0.175)
  3261. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.35,math.cos(syne/30)/20+.25)*CFrame.Angles(math.cos(syne/30)/25+math.rad(75),math.rad(4),0),.175)
  3262. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-2.2,0)*CFrame.Angles(math.rad(-82)+math.cos(syne/5)/12,math.cos(syne/10)/15,math.cos(syne/5)/15),0.15)
  3263. end
  3264.  
  3265. if anim=='SpeedCrawling' then
  3266. if not armmovement then
  3267. rarm.Weld.C0=Lerp(rarm.Weld.C0, CFrame.new(1.25, 1-math.cos(syne/5)/2, -.35+math.cos(syne/5)/12) * CFrame.Angles(math.rad(155)-math.cos(syne/5)/14, 0, math.rad(-25)+math.cos(syne/5)/13),.175)
  3268. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.25, 1+math.cos(syne/5)/2, -.35-math.cos(syne/5)/12) * CFrame.Angles(math.rad(155)+math.cos(syne/5)/14, 0, math.rad(25)-math.cos(syne/5)/13), .175)
  3269. end
  3270. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.525, -1.5-math.cos(syne/5)/3, -.3+math.cos(syne/5)/10) * CFrame.Angles(math.rad(-5)-math.cos(syne/5)/9, 0, math.rad(0)-math.cos(syne/5)/15), .175)
  3271. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.525, -1.5+math.cos(syne/5)/3, -.3-math.cos(syne/5)/10) * CFrame.Angles(math.rad(-5)+math.cos(syne/5)/9, 0, math.rad(-0)-math.cos(syne/5)/15), 0.175)
  3272. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.35,math.cos(syne/15)/20+.25)*CFrame.Angles(math.cos(syne/15)/25+math.rad(75),math.rad(4),0),.175)
  3273. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-2.2,0)*CFrame.Angles(math.rad(-82)+math.cos(syne/2.5)/12,math.cos(syne/5)/15,math.cos(syne/2.5)/15),0.15)
  3274. end
  3275. end
  3276.  
  3277. if crouching then chr.Humanoid.WalkSpeed=0 end
  3278.  
  3279. chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(hed.CFrame)).p+Vector3.new(0,-1.25,0)
  3280.  
  3281. if runnin and not disabled and not otheranims and not sitting then
  3282. chr.Humanoid.WalkSpeed=RunSpeed
  3283. elseif not runnin and not disabled and not otheranims and not sitting then
  3284. chr.Humanoid.WalkSpeed=WlkSpeed
  3285. elseif not runnin and not disabled and otheranims and crawling and not crawldash and not sitting then
  3286. chr.Humanoid.WalkSpeed=CrawlSpeed
  3287. elseif not runnin and not disabled and otheranims and crawling and crawldash and not sitting then
  3288. chr.Humanoid.WalkSpeed=CrawlDashSpeed
  3289. end
  3290. end)
  3291.  
  3292. local hp=Instance.new("HopperBin",plr.Backpack)
  3293. hp.Name="Neko Neko Knuckles"
  3294. hp.Selected:connect(function()
  3295. equipped=true
  3296. end)
  3297. hp.Deselected:connect(function()
  3298. equipped=false
  3299. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement