Advertisement
Team_Alex

Untitled

Jan 19th, 2020
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.22 KB | None | 0 0
  1. function click()
  2. local I=Instance.new
  3. local V3=Vector3.new
  4. local UD=UDim2.new
  5. local CF=CFrame.new
  6. local C3=Color3.new
  7. local C3C=C3(.4,.2,.6)
  8. local p=game.Players.LocalPlayer
  9. local c=p.Character
  10. local G=p.PlayerGui
  11. local T=c.Torso
  12. local hd=p.Character.Head
  13. for _,rh in pairs(c:GetChildren())do if rh.ClassName=="Hat" then rh:destroy()end end
  14. for _,hdf in pairs(c:GetChildren())do if hdf.Name=="Head" then for _,hf in pairs(hd:GetChildren()) do if hf.ClassName=="Decal" then hf:destroy()end end
  15. hdf.Mesh.MeshId="http://www.roblox.com/asset/?id=162384581"
  16. hdf.Mesh.TextureId="http://www.roblox.com/asset/?id=162384608"
  17. hdf.Mesh.Scale=V3(1.02, 1.02, 1.02)
  18. hdf.Mesh.Offset=V3(0,0,.2)end
  19. end
  20. for _,rfi in pairs(c:GetChildren())do if rfi.Name=="Head" then for _,rfid in pairs(rfi:GetChildren())do if rfid.ClassName=="Fire"then rfid:destroy()end end end end
  21. local hfi=I("Fire",c.Head)hfi.Color=C3(.2,.1,.4)hfi.SecondaryColor=C3()hfi.Size=6 hfi.Heat=15
  22. local m=p:GetMouse()
  23. local t=""
  24. local h=m.Hit
  25. for _,cc in pairs(c:GetChildren()) do if cc.Name=="1" then cc:destroy() end end
  26. local b=I("Part", c)b.CFrame=T.CFrame b.Name="1"b.FormFactor=3 b.Size=V3(.8,.8,.8)b.CanCollide=false
  27. b.TopSurface=0 b.BottomSurface=0 b.Color=C3C b.Reflectance=.05 b.Material=288
  28. local bpl=I("PointLight",b) bpl.Color=b.Color bpl.Shadows=true bpl.Brightness=20 bpl.Range=10
  29. local fi=I("Fire",b) fi.Color=b.Color fi.SecondaryColor=C3() fi.Size=3 fi.Heat=15
  30. local mh=I("SpecialMesh",b) mh.MeshType="Sphere"
  31. local bp=I("BodyPosition",b)
  32. local mdl=I("Model",b) mdl.Name="S"
  33. local md=I("Model",b) md.Name="Sh"
  34. local del=I("Model",b)del.Name="del"
  35. local w=0
  36. local a=12
  37. local H=0
  38. local eon=false
  39. local xon=false
  40. local ron=false
  41. local binOn=false
  42. local BaseplateOnly=true
  43. local bprt={"Right Leg","Left Leg","Right Arm","Left Arm","Torso","Head"}
  44. local v1=I("CFrameValue",b)v1.Name="CFv"v1.Value=b.CFrame
  45. local mode_val=I("NumberValue",b)mode_val.Name="mode"mode_val.Value=1
  46. local mode_ar={"Kill","Explode","Kick","Teleport"}
  47. local PL={}
  48. local cbinar={}
  49. local F={"H1M","5ifth","TheNightWolf","SavageMunkey","grubsteak","xDarkScripter"}
  50. -- local cbin = c:FindFirstChild("cbin")if not cbin then cbin=I("Camera")cbin.Name="cbin"cbin.Parent=c end
  51. local cbin=I("Model",b)
  52.  
  53. -- function getFriends() --grubsteak
  54. -- for i = 1, #F+1 do
  55. -- table.remove(F,i)
  56. -- end
  57. -- local players=game:GetService'Players'
  58. -- local id=players:GetUserIdFromNameAsync(players.LocalPlayer.Name)
  59. -- for _, player in pairs(game.Players:GetPlayers()) do
  60. -- if player:IsFriendsWith(id) then
  61. -- if player.Name~=p.Name then
  62. -- table.insert(F, player)
  63. -- end
  64. -- end
  65. -- end
  66. -- for _,i in pairs(F)do
  67. -- print(_,i)
  68. -- end
  69. -- return F
  70. -- end
  71. -- getFriends()
  72.  
  73. local function cbinBricks()
  74. PL=game.Players:GetPlayers()
  75. for _,i in pairs(PL)do
  76. if i == p then
  77. table.remove(PL,1)
  78. end
  79. end
  80. for i=1,#PL do
  81. local cbinPart=I("Part",cbin)cbinPart.Name=PL[i].Name cbinPart.Anchored=true cbinPart.CanCollide=false cbinPart.FormFactor=3
  82. cbinPart.Material=288 cbinPart.Transparency=0.4 cbinPart.Size=V3()cbinPart.CFrame=CF(0,-5,0)
  83. for Fi = 1, #F do
  84. if cbinPart.Name==tostring(F[Fi])then
  85. cbinPart.Color=C3(0,1,0)
  86. else
  87. cbinPart.Color=C3(1,0,0)
  88. end
  89. end
  90. end
  91. while binOn do coroutine.yield()
  92. cbinar=cbin:GetChildren()
  93. for cbinam = 1,#cbinar do
  94. cbin[tostring(cbinar[cbinam].Name)].CFrame=CF((b.CFrame.p + game.Players[tostring(cbinar[cbinam].Name)].Character:FindFirstChild("Torso").CFrame.p)/2,game.Players[tostring(cbinar[cbinam].Name)].Character:FindFirstChild("Torso").Position)
  95. cbin[tostring(cbinar[cbinam].Name)].Size=V3(0,0,(b.CFrame.p - game.Players[tostring(cbinar[cbinam].Name)].Character:FindFirstChild("Torso").CFrame.p).magnitude)
  96. end
  97. end
  98. end
  99.  
  100. local function oK(key)
  101. if (key~=nil) then
  102. if (key=="z") then
  103. if binOn~=true then binOn=true elseif binOn~=false then binOn=false end
  104. if binOn==true then
  105. cbinBricks()
  106. elseif binOn~=true then
  107. cbin:ClearAllChildren()
  108. end
  109. end
  110. end
  111. end
  112. m.KeyDown:connect(oK)
  113.  
  114. for _,i in pairs(G:GetChildren())do if i.Name=="1"then i:destroy()end end
  115. local main_gui=I("ScreenGui",G)main_gui.Name="1"
  116. local scroll_gui=I("ScrollingFrame",main_gui)scroll_gui.BackgroundColor3=C3C
  117. scroll_gui.Visible=false
  118. scroll_gui.Position = UD(.88,0,.4,0)
  119. scroll_gui.Size = UD(.05,100,.4,100)
  120. local text_mode=I("TextLabel",main_gui)text_mode.Name="m"text_mode.BackgroundColor3=C3C text_mode.TextXAlignment="Left"text_mode.TextYAlignment="Top"
  121. text_mode.TextColor3=C3(1,1,1)
  122. text_mode.Visible=false
  123. text_mode.Position=UD(.88,0,.31,0)
  124. text_mode.Size=UD(.05,100,.02,50)
  125. text_mode.Text=" Mode: "..mode_ar[mode_val.Value]
  126.  
  127. local function gui_update()
  128. PL=game.Players:GetPlayers()
  129. for i = 1,#PL,1 do
  130. local text_gui=I("TextButton",scroll_gui)text_gui.Name=""..i text_gui.BackgroundColor3=C3(1,1,1)
  131. text_gui.Size=UD(0,165,0,40)
  132. text_gui.TextScaled=true
  133. text_gui.Text=PL[i].Name
  134. if PL[i]==PL[1]then
  135. text_gui.Position=UD(0.04,0,-1,0)
  136. elseif PL[i]~=PL[1] then
  137. text_gui.Position=UD(0.04,0,.03*(i-1.85),0)
  138. end
  139. local function text_click()
  140. for _,i in pairs(main_gui:GetChildren())do if i.Name=="y"then i:destroy()elseif i.Name=="n"then i:destroy()end end
  141. text_mode.Visible=true
  142. local click_target = PL[tonumber(text_gui.Name)].Name
  143. print(click_target)
  144. local text_yes=I("TextButton",main_gui)text_yes.Name="y"text_yes.Text="Yes"text_yes.BackgroundColor3=C3(.2,1,.3)text_yes.ZIndex=2
  145. text_yes.Position=UD(.89,0,.35,0)
  146. text_yes.Size=UD(0,50,0,25)
  147. local text_no=I("TextButton",main_gui)text_no.Name="n"text_no.Text="No"text_no.BackgroundColor3=C3(1,.2,.3)text_no.ZIndex=2
  148. text_no.Position=UD(.945,0,.35,0)
  149. text_no.Size=UD(0,50,0,25)
  150. local function no_click()
  151. text_yes:destroy()
  152. text_no:destroy()
  153. text_mode.Visible=false
  154. end
  155. text_no.MouseButton1Click:connect(no_click)
  156. local function yes_click()
  157. text_yes:destroy()
  158. text_no:destroy()
  159. text_mode.Visible=false
  160. if mode_val.Value==1 then
  161. workspace[click_target].Humanoid.Health=0
  162. elseif mode_val.Value==2 then
  163. for _,ii in pairs(workspace[click_target]:GetChildren())do if ii.ClassName=="ForceField"then ii:destroy()end end
  164. local yes_explosion=I("Explosion",workspace[click_target].Torso)
  165. yes_explosion.Position=workspace[click_target].Torso.Position
  166. elseif mode_val.Value==3 then
  167. game.Players[click_target]:destroy()
  168. elseif mode_val.Value==4 then
  169. T.CFrame=workspace[click_target].Torso.CFrame*CF(0,0,1.5)
  170. end
  171. end
  172. text_yes.MouseButton1Click:connect(yes_click)
  173. local function oK(key)
  174. if (key~=nil) then
  175. if (key=="r") then
  176. text_yes:destroy()
  177. text_no:destroy()
  178. end
  179. end
  180. end
  181. m.KeyDown:connect(oK)
  182. end
  183. text_gui.MouseButton1Click:connect(text_click)
  184. end
  185. end
  186.  
  187. game.Players.ChildRemoved:connect(function(pL)
  188. if pL.Name~=p.Name then
  189. print("Removed "..pL.Name)
  190. PL=game.Players:GetPlayers()
  191. scroll_gui:ClearAllChildren()
  192. gui_update()
  193. wait()
  194. if binOn==true then
  195. cbin:ClearAllChildren()
  196. cbinBricks()
  197. end
  198. end
  199. end)
  200. game.Players.ChildAdded:connect(function(pL)
  201. if pL.Name~=p.Name then
  202. print("Added "..pL.Name)
  203. PL=game.Players:GetPlayers()
  204. scroll_gui:ClearAllChildren()
  205. gui_update()
  206. wait()
  207. if binOn==true then
  208. cbin:ClearAllChildren()
  209. cbinBricks()
  210. end
  211. end
  212. end)
  213.  
  214. local function oK(key)
  215. if (key~=nil) then
  216. if (key=="r") then
  217. if ron~=true then ron=true elseif ron~=false then ron=false end
  218. if ron==true then
  219. scroll_gui.Visible=true
  220. scroll_gui:ClearAllChildren()
  221. gui_update()
  222. elseif ron==false then
  223. scroll_gui.Visible=false
  224. text_mode.Visible=false
  225. end
  226. end
  227. end
  228. end
  229. m.KeyDown:connect(oK)
  230.  
  231. local function oK(key)
  232. if (key~=nil) then
  233. if (key=="q") then
  234. mode_val.Value=mode_val.Value-1
  235. if mode_val.Value<=0 then
  236. mode_val.Value=4
  237. end
  238. text_mode.Text=" Mode: "..mode_ar[mode_val.Value]
  239. end
  240. end
  241. end
  242. m.KeyDown:connect(oK)
  243.  
  244. local function oK(key)
  245. if (key~=nil) then
  246. if (key=="e") then
  247. mode_val.Value=mode_val.Value+1
  248. if mode_val.Value>=5 then
  249. mode_val.Value=1
  250. end
  251. text_mode.Text=" Mode: "..mode_ar[mode_val.Value]
  252. end
  253. end
  254. end
  255. m.KeyDown:connect(oK)
  256.  
  257. ---- Functions
  258. local function oK(key)
  259. if (key~=nil) then
  260. if (key=="g") then
  261. if b.BrickColor.Name == "Bright violet" then
  262. hd.Mesh.MeshId="http://www.roblox.com/asset/?id=21057410"
  263. hd.Mesh.TextureId="http://www.roblox.com/asset/?id=64444605"
  264. hd.Mesh.Scale=V3(1.05,1.05,1.05)
  265. hd.Mesh.Offset=V3(0,0.1,.07)
  266. C3C = C3(.2,.6,.4)
  267. b.Color=C3C
  268. bpl.Color=C3C
  269. fi.Color=b.Color
  270. fi.SecondaryColor=C3()
  271. hfi.Color=C3(.1,.4,.2)
  272. hfi.SecondaryColor=C3()
  273. scroll_gui.BackgroundColor3=C3C
  274. text_mode.BackgroundColor3=C3C
  275. for _,i in pairs(del:GetChildren())do i.Color=C3C end
  276. elseif b.BrickColor.Name ~= "Bright violet" then
  277. hd.Mesh.MeshId="http://www.roblox.com/asset/?id=162384581"
  278. hd.Mesh.TextureId="http://www.roblox.com/asset/?id=162384608"
  279. hd.Mesh.Scale=V3(1.02, 1.02, 1.02)
  280. hd.Mesh.Offset=V3(0,0,.2)
  281. C3C = C3(.4,.2,.6)
  282. b.Color=C3C
  283. bpl.Color=C3C
  284. fi.Color=b.Color
  285. fi.SecondaryColor=C3()
  286. hfi.Color=C3(.2,.1,.4)
  287. hfi.SecondaryColor=C3()
  288. scroll_gui.BackgroundColor3=C3C
  289. text_mode.BackgroundColor3=C3C
  290. for _,i in pairs(del:GetChildren())do i.Color=C3C end
  291. end
  292. end
  293. end
  294. end
  295. m.KeyDown:connect(oK)
  296.  
  297. local function oK(key)
  298. if (key~=nil) then
  299. if (key=="f") then
  300. local ms = I("Part",mdl) ms.Position=b.Position ms.FormFactor=3 ms.Size=V3(.8,.8,.8) ms.Color=C3(236/255,139/255,70/255)
  301. ms.TopSurface=0 ms.BottomSurface=0 ms.Material=288
  302. local msm = I("SpecialMesh",ms) msm.MeshType="Sphere"
  303. local msf = I("Fire",ms) msf.Heat=10 msf.Size=3
  304. local mbp = I("BodyPosition",ms) mbp.P=2500 mbp.D=625 mbp.position=m.Hit.p
  305. wait(1.6)
  306. local ex = I("Explosion",ms) ex.Position = ms.Position ex.DestroyJointRadiusPercent=1
  307. msf:destroy()
  308. ms.Transparency=1
  309. wait(1.3)
  310. ms:destroy()
  311. end
  312. end
  313. end
  314. m.KeyDown:connect(oK)
  315.  
  316. local function oK(key)
  317. if (key~=nil) then
  318. if (key=="y") then
  319. if eon~= true then eon=true elseif eon~=false then eon=false end
  320. if eon==true then
  321. for i=1,20 do
  322. local ept = I("Part",md) ept.CanCollide=false ept.Anchored=true ept.Name="p"..i ept.FormFactor=3 ept.Size=V3(0,0,0)
  323. ept.CFrame = T.CFrame * CFrame.Angles(0,math.rad(i)*(360/15),0) * CF(0,0,12.51) ept.Transparency=1
  324. local epk = I("Part",md) epk.CanCollide=false epk.Anchored=true epk.Name="pk"..i epk.FormFactor=3 epk.Size=V3(5,15,0) epk.Transparency=1
  325. local epl = I("PointLight",ept) epl.Brightness=20 epl.Range=10 epl.Color=fi.Color
  326. if epk.Name=="pk"..i then
  327. epk.CFrame=ept.CFrame*CF(0,6,0)
  328. end
  329. local function epkf(ehit)
  330. if ehit.Parent.ClassName == "Model" then
  331. if ehit.Parent.Name ~= p.Name then
  332. for _,i in pairs(ehit.Parent:GetChildren()) do if i.ClassName=="Humanoid" then i.Health=0 end end
  333. end
  334. end
  335. end
  336. epk.Touched:connect(epkf)
  337. local epf = I("Fire",ept) epf.Size=10 epf.Heat=15 epf.Color=fi.Color epf.SecondaryColor=C3()
  338. local epw = I("Weld",ept) epw.Name="w"..i
  339. if epw.Name == "w"..i then
  340. epw.C0 = CFrame.Angles(0,math.rad(-i)*(360/20),0)*CF(0,0,16)
  341. epw.C1 = CFrame.Angles(0,0,0)*CF(0,0,0)
  342. epw.Part0 = T
  343. epw.Part1 = epw.Parent
  344. end
  345. wait()
  346. ept.Anchored = false
  347. local function oK(key)
  348. if (key~=nil) then
  349. if (key=="g") then
  350. if b.BrickColor.Name == "Bright green" then
  351. epf.Color=C3(.4,.2,.6)
  352. epf.SecondaryColor=C3()
  353. epl.Color=epf.Color
  354. elseif b.BrickColor.Name == "Bright violet" then
  355. epf.Color=C3(.1,.4,.2)
  356. epf.SecondaryColor=C3()
  357. epl.Color=epf.Color
  358. end
  359. end
  360. end
  361. end
  362. m.KeyDown:connect(oK)
  363. end
  364. local epd = I("Part",md)
  365. epd.CanCollide=false epd.Anchored=true epd.Name="pd" epd.Size=V3(25,0,25) epd.CFrame=T.CFrame*CF(0,-2,0) epd.Transparency=1
  366. local function epdf(eh)
  367. if eh.Parent ~= c then
  368. if eh.Parent.ClassName == "Model" then
  369. for _,i in pairs(eh.Parent:GetChildren()) do
  370. if i.ClassName=="Humanoid" then
  371. i.Health=0
  372. end
  373. end
  374. end
  375. end
  376. end
  377. epd.Touched:connect(epdf)
  378. while eon do wait()
  379. for _,i in pairs(c["1"].Sh:GetChildren()) do
  380. for n=1,20 do
  381. if i.Name=="pk"..n then
  382. i.CFrame=i.Parent["p"..n].CFrame*CF(0,6,0)
  383. end
  384. end
  385. end
  386. for _,i in pairs(c["1"].Sh:GetChildren()) do
  387. if i.Name=="pd" then
  388. i.CFrame=T.CFrame*CF(0,-2,0)
  389. end
  390. end
  391. end
  392. elseif eon==false then
  393. for _,i in pairs(md:GetChildren()) do wait()
  394. i:destroy()
  395. end
  396. end
  397. end
  398. end
  399. end
  400. m.KeyDown:connect(oK)
  401.  
  402. local function oK(key)
  403. if (key~=nil) then
  404. if (key=="t") then
  405. local expr=I("Part",mdl) expr.Anchored=true expr.CanCollide=false expr.Transparency=1 expr.CFrame=m.Hit*CF(0,4,0) expr.Rotation=V3(0,0,0) expr.Size=V3(5,15,5)
  406. local expl=I("PointLight",expr) expl.Brightness=20 expl.Range=20 expl.Color=fi.Color
  407. local expt=I("Part",mdl) expt.Anchored=true expt.CanCollide=false expt.Transparency=1 expt.CFrame=expr.CFrame*CF(0,-2,0) expt.Size=V3(15,0,15)
  408. local function exprt(hit) for _,i in pairs(hit.Parent:GetChildren()) do if i.ClassName == "ForceField" then i:destroy() end end end
  409. expt.Touched:connect(exprt)
  410. for i = 1,20 do
  411. local expa=I("Part",expr) expa.Anchored=true expa.Size=V3(1,25,4) expa.Material="Air"
  412. local expafi=I("Fire",expa) expafi.Color=fi.Color expafi.SecondaryColor=fi.Color expafi.Size=15 expafi.Heat=20
  413. expa.CFrame=expr.CFrame
  414. expa.Rotation=V3(0,0,0)
  415. expa.CFrame=expa.CFrame*CFrame.Angles(0,math.rad(i)*(360/20),0)*CF(12,-3.7,0)
  416. local function oK(key)
  417. if (key~=nil) then
  418. if (key=="g") then
  419. if b.BrickColor.Name == "Bright green" then
  420. expafi.Color=C3(.4,.2,.6)
  421. expafi.SecondaryColor=C3(.4,.2,.6)
  422. expl.Color=expafi.Color
  423. elseif b.BrickColor.Name == "Bright violet" then
  424. expafi.Color=C3(.1,.4,.2)
  425. expafi.SecondaryColor=C3(.1,.4,.2)
  426. expl.Color=expafi.Color
  427. end
  428. end
  429. end
  430. end
  431. m.KeyDown:connect(oK)
  432. end
  433. wait(2)
  434. for i = 1,5 do
  435. local expre=I("Explosion",expr) expre.Position=expr.Position expre.BlastRadius=12 expre.DestroyJointRadiusPercent=1
  436. end
  437. wait(1)
  438. expr:destroy() expt:destroy()
  439. end
  440. end
  441. end
  442. m.KeyDown:connect(oK)
  443.  
  444. local function oK(key)
  445. if (key~=nil) then
  446. if (key=="v") then
  447. local tp=I("Part",b)tp.Name="tp"tp.Anchored=true tp.CanCollide=false tp.Transparency=1
  448. tp.CFrame=m.Hit
  449. tp.Rotation=T.Rotation
  450. wait()
  451. T.CFrame=tp.CFrame*CFrame.new(0,3,0)
  452. wait()
  453. tp:destroy()
  454. end
  455. end
  456. end
  457. m.KeyDown:connect(oK)
  458.  
  459. local function oK(key)
  460. if (key~=nil) then
  461. if (key=="x") then
  462. if xon~=true then xon=true elseif xon~=false then xon=false end
  463. if xon==true then
  464. c.Humanoid.WalkSpeed=64
  465. end
  466. if xon==false then
  467. c.Humanoid.WalkSpeed=16
  468. end
  469. end
  470. end
  471. end
  472. m.KeyDown:connect(oK)
  473.  
  474. local function oK(key)
  475. if (key~=nil) then
  476. if (key=="h") then
  477. local hPart=I("Part",b)hPart.Anchored=true hPart.CanCollide=false hPart.FormFactor=3 hPart.Shape="Ball" hPart.Size=V3(.2,.2,.2)
  478. hPart.Material=288 hPart.Transparency=.6
  479. if BaseplateOnly==true then
  480. hPart.CFrame=CF(m.Hit.x,10,m.Hit.z)
  481. hPart.Rotation=V3(0,0,0)
  482. elseif BaseplateOnly~=true then
  483. hPart.CFrame=m.Hit
  484. hPart.Rotation=V3(0,0,0)
  485. hPart.CFrame=hPart.CFrame*CF(0,10,0)
  486. end
  487. local pos = hPart.CFrame
  488. hPart.Color=C3C
  489. local function hTouch(hit)
  490. if hit.Parent.Name~=p.Name then
  491. local human = hit.Parent:findFirstChild("Humanoid")
  492. if human~=nil then
  493. human.Health=human.Health-10
  494. end
  495. wait()
  496. end
  497. end
  498. hPart.Touched:connect(hTouch)
  499. for i=0,24,.8 do wait()
  500. hPart.Size=V3(i,i,i)
  501. hPart.CFrame=pos
  502. end
  503. for i=24,0,-.8 do wait()
  504. hPart.Size=V3(i,i,i)
  505. hPart.CFrame=pos
  506. end
  507. hPart:destroy()
  508. end
  509. end
  510. end
  511. m.KeyDown:connect(oK)
  512.  
  513. spawn(function()
  514. while true do
  515. w=w+0.01
  516. b.Rotation=V3(0,0,0)
  517. --bp.position = T.Position + V3(math.sin(w)*a*math.cos(math.cos(w)*math.sin(w)*a),3+math.sin(w)*a/3*math.cos(w*a),math.cos(w)*a*math.cos(math.cos(w)*math.sin(w)*a))
  518. --bp.position = T.Position + V3(math.sin(w)*a*math.cos(math.cos(w)*math.sin(w)*a),5+math.sin(w+w*a)*a/3*math.cos(w*a),math.cos(w)*a*math.sin(math.cos(w)*math.cos(w)*a))
  519. --bp.position = T.Position + V3(math.cos(w)*math.sin(w*a)*a,5+math.sin(w)*math.cos(math.sin(w*a)*math.cos(w*a))*a/4,math.cos(w*a)*a)
  520. --bp.position = T.Position + V3(math.sin(w*a/2)*a*math.cos(math.cos(w)*a*math.sin(w)), 4+math.sin(w*a/2)*a/4*math.sin(math.sin(w)*a*math.cos(w)), math.cos(w*a/2)*a*math.cos(math.cos(w)*a*math.sin(w)))
  521. bp.position = T.Position + V3(math.sin(w*a)*a*math.cos(w),8+math.sin(w)*a*math.cos(w),math.cos(w*a)*a*math.cos(w))
  522. b.Color=C3C
  523. wait()
  524. end
  525. end)
  526.  
  527. -- spawn(function()
  528. -- game:GetService("RunService").RenderStepped:connect(function()
  529. -- local v=v1.Value
  530. -- local bT=I("Part",del)bT.Anchored=true bT.CanCollide=false bT.FormFactor=3 bT.Material=288 bT.Transparency=0.2
  531. -- bT.Color=C3C
  532. -- v1.Value=b.CFrame
  533. -- bT.CFrame=CF((v.p + b.CFrame.p)/2, v.p)
  534. -- bT.Size=V3(0,0,(v.p - b.CFrame.p).magnitude)
  535. -- game.Debris:AddItem(bT,1)
  536. -- end)
  537. -- end)
  538.  
  539. spawn(function()
  540. while wait() do
  541. local v=v1.Value
  542. local bT=I("Part",del)bT.Anchored=true bT.CanCollide=false bT.FormFactor=3 bT.Material=288 bT.Transparency=0.2
  543. bT.Color=C3C
  544. v1.Value=b.CFrame
  545. bT.CFrame=CF((v.p + b.CFrame.p)/2, v.p)
  546. bT.Size=V3(0,0,(v.p - b.CFrame.p).magnitude)
  547. game.Debris:AddItem(bT,1)
  548. -- local fade = coroutine.create(function()
  549. -- for i = 1,40 do wait()
  550. -- bT.Transparency=bT.Transparency + 1/40
  551. -- bT.Size = bT.Size + V3(1/20, 1/20, 0)
  552. -- end
  553. -- bT:destroy()
  554. -- end)
  555. -- coroutine.resume(fade)
  556. end
  557. end)
  558. end
  559. script.Parent.MouseButton1Down:connect(click)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement