Advertisement
Scorpion2

Playing cat shrek bobo

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