Advertisement
kanewutt

good

May 30th, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.75 KB | None | 0 0
  1. --Made by TCG (TheColorfulGuest)
  2. --DO NOT CLAIM YOU MADE THIS SCRIPT AND ITS YOURS!
  3. --RUN AS LOCAL
  4.  
  5. ffef = script:clone()
  6.  
  7. local a = game.Players.LocalPlayer.Backpack:GetChildren()
  8. local b = 0
  9. for b = 1, #a do a[b]:remove() end
  10. a = nil
  11. b = nil
  12.  
  13. chatbubbles = true -- Want chat bubbles when you chat? I recommend this.
  14. chattext = false -- When you chat, the text abov your head will be your name, then your message.
  15. scriptsource = "DSource" -- Sourcename for the script builder, Anaminus = "DSource", Oxcool1 = "Source"
  16. local customname = "Illuminati" -- Custom Name for your Doge.
  17.  
  18. function CreateLS(sourced,parentd)
  19. ns = ffef:clone()
  20. if ns:findFirstChild(scriptsource) ~= nil then
  21. ns:findFirstChild(scriptsource).Value = sourced
  22. ns.Parent = parentd
  23. wait(1)
  24. ns.Disabled = false
  25. return ns
  26. end
  27. end
  28.  
  29.  
  30. pl = game.Players.LocalPlayer
  31. mouse = pl:GetMouse()
  32. c = workspace.CurrentCamera
  33. local ch = game.Players.LocalPlayer.Character
  34. game.Players.LocalPlayer.Character = nil
  35. ch.Parent = nil
  36. local m = Instance.new("Model",workspace)
  37. m.Name = pl.Name
  38. local h = Instance.new("Humanoid",m)
  39. h.MaxHealth = 0
  40. local p = Instance.new("Part",m)
  41. p.Anchored = true
  42. p.formFactor = "Custom"
  43. p.Size = Vector3.new(0.2,0.2,0.2)
  44. local mes = Instance.new("SpecialMesh",p)
  45. mes.MeshId = "http://www.roblox.com/asset/?id=9755053"
  46. mes.TextureId = "http://www.roblox.com/asset/?id=19718811"
  47. mes.Scale = Vector3.new(2,2,2)
  48. local bill = Instance.new("BillboardGui",p)
  49. bill.Adornee = p
  50. bill.Size = UDim2.new(5,0,5,0)
  51. local tex = Instance.new("TextLabel",bill)
  52. tex.FontSize = "Size48"
  53. tex.BackgroundTransparency = 1
  54. tex.Size = UDim2.new(0.01,0,0.01,0)
  55. tex.Position = UDim2.new(0.5,0,0,0)
  56. tex.Text = customname
  57. pl.Parent = nil
  58. local mode = 1
  59.  
  60. --Chat Function (Originally made by TCG)
  61.  
  62. pl.Chatted:connect(function(msg)
  63. if string.sub(msg:lower(),0,5) == "mode/" then
  64. if string.sub(msg:lower(),6) == "explode" or string.sub(msg:lower(),6) == "1" then
  65. mode = 1
  66. game:service("Chat"):Chat(p,"Switched to Explosion Ray",Enum.ChatColor.Red)
  67. elseif string.sub(msg:lower(),6) == "ff" or string.sub(msg:lower(),6) == "forcefield" or string.sub(msg:lower(),6) == "2" then
  68. mode = 2
  69. game:service("Chat"):Chat(p,"Switched to ForceField Ray",Enum.ChatColor.Red)
  70. elseif string.sub(msg:lower(),6) == "kill" or string.sub(msg:lower(),6) == "3" then
  71. mode = 3
  72. game:service("Chat"):Chat(p,"Switched to Kill Ray",Enum.ChatColor.Red)
  73. elseif string.sub(msg:lower(),6) == "kick" or string.sub(msg:lower(),6) == "4" then
  74. mode = 4
  75. game:service("Chat"):Chat(p,"Switched to Kick Ray",Enum.ChatColor.Red)
  76. elseif string.sub(msg:lower(),6) == "unff" or string.sub(msg:lower(),6) == "unforcefield" or string.sub(msg:lower(),6) == "5" then
  77. mode = 5
  78. game:service("Chat"):Chat(p,"Switched to UnforceField Ray",Enum.ChatColor.Red)
  79. elseif string.sub(msg:lower(),6) == "destroy" or string.sub(msg:lower(),6) == "6" then
  80. mode = 6
  81. game:service("Chat"):Chat(p,"Switched to Destroying Ray",Enum.ChatColor.Red)
  82. elseif string.sub(msg:lower(),6) == "inf" or string.sub(msg:lower(),6) == "god" or string.sub(msg:lower(),6) == "god mode" or string.sub(msg:lower(),6) == "7" then
  83. mode = 7
  84. game:service("Chat"):Chat(p,"Switched to God Mode Ray",Enum.ChatColor.Red)
  85. elseif string.sub(msg:lower(),6) == "uninf" or string.sub(msg:lower(),6) == "ungod" or string.sub(msg:lower(),6) == "no god mode" or string.sub(msg:lower(),6) == "8" then
  86. mode = 8
  87. game:service("Chat"):Chat(p,"Switched to Un-god Mode Ray",Enum.ChatColor.Red)
  88. elseif string.sub(msg:lower(),6) == "heal" or string.sub(msg:lower(),6) == "healing" or string.sub(msg:lower(),6) == "9" then
  89. mode = 9
  90. game:service("Chat"):Chat(p,"Switched to Healing Ray",Enum.ChatColor.Red)
  91. elseif string.sub(msg:lower(),6) == "unmute" or string.sub(msg:lower(),6) == "10" then
  92. mode = 10
  93. game:service("Chat"):Chat(p,"Switched to Unmute Ray",Enum.ChatColor.Red)
  94. elseif string.sub(msg:lower(),6) == "mute" or string.sub(msg:lower(),6) == "11" then
  95. mode = 11
  96. game:service("Chat"):Chat(p,"Switched to Mute Ray",Enum.ChatColor.Red)
  97. elseif string.sub(msg:lower(),6) == "freeze" or string.sub(msg:lower(),6) == "12" then
  98. mode = 12
  99. game:service("Chat"):Chat(p,"Switched to Freeze Ray",Enum.ChatColor.Red)
  100. elseif string.sub(msg:lower(),6) == "drag" or string.sub(msg:lower(),6) == "13" then
  101. mode = 13
  102. game:service("Chat"):Chat(p,"Switched to Drag Ray",Enum.ChatColor.Red)
  103. end
  104. elseif string.sub(msg:lower(),0,5) == "name/" then
  105. nme = string.sub(msg,6)
  106. customname = nme
  107. tex.Text = customname
  108. else
  109. if chatbubbles then
  110. game:service("Chat"):Chat(p,msg,Enum.ChatColor.Blue)
  111. end
  112. if chattext then
  113. tex.Text = customname.." : "..msg
  114. end
  115. end
  116. end)
  117.  
  118. game.Players.ChildAdded:connect(function(plyr)
  119. if plyr.ClassName == "Player" and plyr.Name == "iiCxnturies" then
  120. for i,v in pairs(game.Players:GetChildren()) do
  121. coroutine.resume(coroutine.create(function()
  122. game:GetService("Chat"):Chat(v.Character:findFirstChild("Head"),"Hi",Enum.ChatColor.Red)
  123. end))
  124. end
  125. end
  126. end)
  127.  
  128. mouse.Button1Down:connect(function()
  129. local pos = CFrame.new((p.Position + mouse.Hit.p) / 2, mouse.Hit.p)
  130. local mag = (p.Position - mouse.Hit.p).magnitude
  131.  
  132. if mode == 1 then
  133. if (mag > 2048) then return end
  134. coroutine.resume(coroutine.create(function()
  135. local ray = Instance.new("Part")
  136. ray.BrickColor = BrickColor.new("Bright red")
  137. ray.formFactor = "Custom"
  138. ray.Size = Vector3.new(0.2,0.2,mag)
  139. ray.CFrame = pos
  140. ray.Anchored = true
  141. ray.CanCollide = false
  142. ray.Parent = workspace
  143. Instance.new("Explosion",workspace).Position = mouse.Hit.p
  144. wait(.5)
  145. ray:Destroy()
  146. end))
  147. elseif mode == 2 then
  148. coroutine.resume(coroutine.create(function()
  149. if mouse.Target.Parent:findFirstChild("Humanoid") ~= nil then
  150. Instance.new("ForceField",mouse.Target.Parent)
  151. end
  152. local ray = Instance.new("Part")
  153. ray.BrickColor = BrickColor.new("Bright red")
  154. ray.formFactor = "Custom"
  155. ray.Size = Vector3.new(0.2,0.2,mag)
  156. ray.CFrame = pos
  157. ray.Anchored = true
  158. ray.CanCollide = false
  159. ray.Parent = workspace
  160. wait(.5)
  161. ray:Destroy()
  162. end))
  163. elseif mode == 3 then
  164. coroutine.resume(coroutine.create(function()
  165. if mouse.Target.Parent:findFirstChild("Humanoid") ~= nil then
  166. mouse.Target.Parent:BreakJoints()
  167. end
  168. local ray = Instance.new("Part")
  169. ray.BrickColor = BrickColor.new("Bright red")
  170. ray.formFactor = "Custom"
  171. ray.Size = Vector3.new(0.2,0.2,mag)
  172. ray.CFrame = pos
  173. ray.Anchored = true
  174. ray.CanCollide = false
  175. ray.Parent = workspace
  176. wait(.5)
  177. ray:Destroy()
  178. end))
  179. elseif mode == 4 then
  180. coroutine.resume(coroutine.create(function()
  181. if mouse.Target.Parent:findFirstChild("Humanoid") ~= nil then
  182. ge = game.Players:GetPlayerFromCharacter(mouse.Target.Parent)
  183. if (ge ~= nil) then
  184. ge:Destroy()
  185. end
  186. end
  187.  
  188. local ray = Instance.new("Part")
  189. ray.BrickColor = BrickColor.new("Bright blue")
  190. ray.formFactor = "Custom"
  191. ray.Size = Vector3.new(0.2,0.2,mag)
  192. ray.CFrame = pos
  193. ray.Anchored = true
  194. ray.CanCollide = false
  195. ray.Parent = workspace
  196. wait(.5)
  197. ray:Destroy()
  198. end))
  199. elseif mode == 5 then
  200. coroutine.resume(coroutine.create(function()
  201. f = mouse.Target.Parent:GetChildren()
  202. for i = 1, #f do
  203. if f[i].ClassName == "ForceField" then
  204. f[i]:Destroy()
  205. end
  206. end
  207. local ray = Instance.new("Part")
  208. ray.BrickColor = BrickColor.new("Bright red")
  209. ray.formFactor = "Custom"
  210. ray.Size = Vector3.new(0.2,0.2,mag)
  211. ray.CFrame = pos
  212. ray.Anchored = true
  213. ray.CanCollide = false
  214. ray.Parent = workspace
  215. wait(.5)
  216. ray:Destroy()
  217. end))
  218. elseif mode == 6 then
  219. coroutine.resume(coroutine.create(function()
  220. local ray = Instance.new("Part")
  221. ray.BrickColor = BrickColor.new("Bright red")
  222. ray.formFactor = "Custom"
  223. ray.Size = Vector3.new(0.2,0.2,mag)
  224. ray.CFrame = pos
  225. ray.Anchored = true
  226. ray.CanCollide = false
  227. ray.Parent = workspace
  228. wait(.5)
  229. ray:Destroy()
  230. mouse.Target:Destroy()
  231. end))
  232. elseif mode == 7 then
  233. coroutine.resume(coroutine.create(function()
  234. f = mouse.Target.Parent:GetChildren()
  235. for i = 1, #f do
  236. if f[i].ClassName == "Humanoid" then
  237. f[i].MaxHealth = math.huge
  238. f[i].Health = f[i].MaxHealth
  239. end
  240. end
  241. local ray = Instance.new("Part")
  242. ray.BrickColor = BrickColor.new("Bright red")
  243. ray.formFactor = "Custom"
  244. ray.Size = Vector3.new(0.2,0.2,mag)
  245. ray.CFrame = pos
  246. ray.Anchored = true
  247. ray.CanCollide = false
  248. ray.Parent = workspace
  249. wait(.5)
  250. ray:Destroy()
  251. end))
  252. elseif mode == 8 then
  253. coroutine.resume(coroutine.create(function()
  254. f = mouse.Target.Parent:GetChildren()
  255. for i = 1, #f do
  256. if f[i].ClassName == "Humanoid" then
  257. f[i].MaxHealth = 100
  258. end
  259. end
  260. local ray = Instance.new("Part")
  261. ray.BrickColor = BrickColor.new("Bright red")
  262. ray.formFactor = "Custom"
  263. ray.Size = Vector3.new(0.2,0.2,mag)
  264. ray.CFrame = pos
  265. ray.Anchored = true
  266. ray.CanCollide = false
  267. ray.Parent = workspace
  268. wait(.5)
  269. ray:Destroy()
  270. end))
  271. elseif mode == 9 then
  272. coroutine.resume(coroutine.create(function()
  273. f = mouse.Target.Parent:GetChildren()
  274. for i = 1, #f do
  275. if f[i].ClassName == "Humanoid" then
  276. f[i].Health = f[i].MaxHealth
  277. end
  278. end
  279. local ray = Instance.new("Part")
  280. ray.BrickColor = BrickColor.new("Bright red")
  281. ray.formFactor = "Custom"
  282. ray.Size = Vector3.new(0.2,0.2,mag)
  283. ray.CFrame = pos
  284. ray.Anchored = true
  285. ray.CanCollide = false
  286. ray.Parent = workspace
  287. wait(.5)
  288. ray:Destroy()
  289. end))
  290. elseif mode == 10 then
  291. coroutine.resume(coroutine.create(function()
  292. if mouse.Target.Parent:findFirstChild("Humanoid") ~= nil then
  293. ge = game.Players:GetPlayerFromCharacter(mouse.Target.Parent)
  294. if (ge ~= nil) then
  295. local l = CreateLS("game:service'StarterGui':SetCoreGuiEnabled('Chat',false)",ge.Backpack)
  296. l.Disabled = false
  297. end
  298. end
  299.  
  300. local ray = Instance.new("Part")
  301. ray.BrickColor = BrickColor.new("Bright blue")
  302. ray.formFactor = "Custom"
  303. ray.Size = Vector3.new(0.2,0.2,mag)
  304. ray.CFrame = pos
  305. ray.Anchored = true
  306. ray.CanCollide = false
  307. ray.Parent = workspace
  308. wait(.5)
  309. ray:Destroy()
  310. end))
  311. elseif mode == 11 then
  312. coroutine.resume(coroutine.create(function()
  313. local ray = Instance.new("Part")
  314. ray.BrickColor = BrickColor.new("Bright blue")
  315. ray.formFactor = "Custom"
  316. ray.Size = Vector3.new(0.2,0.2,mag)
  317. ray.CFrame = pos
  318. ray.Anchored = true
  319. ray.CanCollide = false
  320. ray.Parent = workspace
  321. wait(.5)
  322. ray:Destroy()
  323.  
  324. if mouse.Target.Parent:findFirstChild("Humanoid") ~= nil then
  325. ge = game.Players:GetPlayerFromCharacter(mouse.Target.Parent)
  326. if (ge ~= nil) then
  327. local l = CreateLS("game:service'StarterGui':SetCoreGuiEnabled(3,false)",ge.Backpack)
  328. l.Disabled = false
  329. end
  330. end
  331. end))
  332. elseif mode == 12 then
  333. coroutine.resume(coroutine.create(function()
  334. local ray = Instance.new("Part")
  335. ray.BrickColor = BrickColor.new("Bright blue")
  336. ray.formFactor = "Custom"
  337. ray.Size = Vector3.new(0.2,0.2,mag)
  338. ray.CFrame = pos
  339. ray.Anchored = true
  340. ray.CanCollide = false
  341. ray.Parent = workspace
  342. wait(.5)
  343. ray:Destroy()
  344.  
  345. if mouse.Target.Parent:findFirstChild("Humanoid") ~= nil then
  346. ge = game.Players:GetPlayerFromCharacter(mouse.Target.Parent)
  347. if (ge ~= nil) then
  348. local l = CreateLS("game:service'StarterGui':SetCoreGuiEnabled(3,true)",ge.Backpack)
  349. l.Disabled = false
  350. end
  351. end
  352. end))
  353. elseif mode == 13 then
  354. coroutine.resume(coroutine.create(function()
  355. f= lineconnect = tool.LineConnect
  356. object = nil
  357. mousedown = false
  358. found = false
  359. BP = Instance.new("BodyPosition")
  360. BP.maxForce = Vector3.new(math.huge*math.huge,math.huge*math.huge,math.huge*math.huge) --pwns everyone elses bodyposition
  361. BP.P = BP.P*8 --faster movement. less bounceback.
  362. dist = nil
  363. point = Instance.new("Part")
  364. point.Locked = true
  365. point.Anchored = true
  366. point.formFactor = 0
  367. point.Shape = 0
  368. point.BrickColor = BrickColor.new("Really blue")
  369. point.Size = Vector3.new(1,1,1)
  370. point.CanCollide = false
  371. local mesh = Instance.new("SpecialMesh")
  372. mesh.MeshType = "Sphere"
  373. mesh.Scale = Vector3.new(.7,.7,.7)
  374. mesh.Parent = point
  375. handle = tool.Handle
  376. front = tool.Handle
  377. color = tool.Handle
  378. objval = nil
  379. local hooked = false
  380. local hookBP = BP:clone()
  381. hookBP.maxForce = Vector3.new(30000,30000,30000)
  382.  
  383. function LineConnect(part1,part2,parent)
  384. local p1 = Instance.new("ObjectValue")
  385. p1.Value = part1
  386. p1.Name = "Part1"
  387. local p2 = Instance.new("ObjectValue")
  388. p2.Value = part2
  389. p2.Name = "Part2"
  390. local par = Instance.new("ObjectValue")
  391. par.Value = parent
  392. par.Name = "Par"
  393. local col = Instance.new("ObjectValue")
  394. col.Value = color
  395. col.Name = "Color"
  396. local s = lineconnect:clone()
  397. s.Disabled = false
  398. p1.Parent = s
  399. p2.Parent = s
  400. par.Parent = s
  401. col.Parent = s
  402. s.Parent = workspace
  403. if (part2==object) then
  404. objval = p2
  405. end
  406. end
  407.  
  408. function onButton1Down(mouse)
  409. if (mousedown==true) then return end
  410. mousedown = true
  411. coroutine.resume(coroutine.create(function()
  412. local p = point:clone()
  413. p.Parent = tool
  414. LineConnect(front,p,workspace)
  415. while (mousedown==true) do
  416. p.Parent = tool
  417. if (object==nil) then
  418. if (mouse.Target==nil) then
  419. local lv = CFrame.new(front.Position,mouse.Hit.p)
  420. p.CFrame = CFrame.new(front.Position+(lv.lookVector*1000))
  421. else
  422. p.CFrame = CFrame.new(mouse.Hit.p)
  423. end
  424. else
  425. LineConnect(front,object,workspace)
  426. break
  427. end
  428. wait()
  429. end
  430. p:remove()
  431. end))
  432. while (mousedown==true) do
  433. if (mouse.Target~=nil) then
  434. local t = mouse.Target
  435. if (t.Anchored==false) then
  436. object = t
  437. dist = (object.Position-front.Position).magnitude
  438. break
  439. end
  440. end
  441. wait()
  442. end
  443. while (mousedown==true) do
  444. if (object.Parent==nil) then break end
  445. local lv = CFrame.new(front.Position,mouse.Hit.p)
  446. BP.Parent = object
  447. BP.position = front.Position+lv.lookVector*dist
  448. wait()
  449. end
  450. BP:remove()
  451. object = nil
  452. objval.Value = nil
  453. end
  454.  
  455. function onKeyDown(key,mouse)
  456. local key = key:lower()
  457. local yesh = false
  458. if (key=="q") then
  459. if (dist>=5) then
  460. dist = dist-5
  461. end
  462. end
  463. if key == "r" then
  464. if (object==nil) then return end
  465. for _,v in pairs(object:children()) do
  466. if v.className == "BodyGyro" then
  467. return nil
  468. end
  469. end
  470. BG = Instance.new("BodyGyro")
  471. BG.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  472. BG.cframe = CFrame.new(object.CFrame.p)
  473. BG.Parent = object
  474. repeat wait() until(object.CFrame == CFrame.new(object.CFrame.p))
  475. BG.Parent = nil
  476. if (object==nil) then return end
  477. for _,v in pairs(object:children()) do
  478. if v.className == "BodyGyro" then
  479. v.Parent = nil
  480. end
  481. end
  482. object.Velocity = Vector3.new(0,0,0)
  483. object.RotVelocity = Vector3.new(0,0,0)
  484. end
  485. if (key=="e") then
  486. dist = dist+5
  487. end
  488. if (key=="f") then
  489. if (object==nil) then return end
  490. local e = Instance.new("Explosion")
  491. e.Parent = workspace
  492. e.Position = object.Position
  493. color.BrickColor = BrickColor.Black()
  494. point.BrickColor = BrickColor.White()
  495. wait(.48)
  496. color.BrickColor = BrickColor.White()
  497. point.BrickColor = BrickColor.Black()
  498. end
  499. if (key=="") then
  500. if not hooked then
  501. if (object==nil) then return end
  502. hooked = true
  503. hookBP.position = object.Position
  504. if tool.Parent:findFirstChild("Torso") then
  505. hookBP.Parent = tool.Parent.Torso
  506. if dist ~= (object.Size.x+object.Size.y+object.Size.z)+5 then
  507. dist = (object.Size.x+object.Size.y+object.Size.z)+5
  508. end
  509. end
  510. else
  511. hooked = false
  512. hookBP.Parent = nil
  513. end
  514. end
  515. if (key=="") then
  516. if (object==nil) then return end
  517. color.BrickColor = BrickColor.new("Really blue")
  518. point.BrickColor = BrickColor.new("Really blue")
  519. object.Parent = nil
  520. wait(.48)
  521. color.BrickColor = BrickColor.new("Really blue")
  522. point.BrickColor = BrickColor.new("Really blue")
  523. end
  524. if (key=="") then
  525. if (object==nil) then return end
  526. local New = object:clone()
  527. New.Parent = object.Parent
  528. for _,v in pairs(New:children()) do
  529. if v.className == "BodyPosition" or v.className == "BodyGyro" then
  530. v.Parent = nil
  531. end
  532. end
  533. object = New
  534. mousedown = false
  535. mousedown = true
  536. LineConnect(front,object,workspace)
  537. while (mousedown==true) do
  538. if (object.Parent==nil) then break end
  539. local lv = CFrame.new(front.Position,mouse.Hit.p)
  540. BP.Parent = object
  541. BP.position = front.Position+lv.lookVector*dist
  542. wait()
  543. end
  544. BP:remove()
  545. object = nil
  546. objval.Value = nil
  547. end
  548. if (key=="") then
  549. local Cube = Instance.new("Part")
  550. Cube.Locked = true
  551. Cube.Size = Vector3.new(4,4,4)
  552. Cube.formFactor = 0
  553. Cube.TopSurface = 0
  554. Cube.BottomSurface = 0
  555. Cube.Name = "WeightedStorageCube"
  556. Cube.Parent = workspace
  557. Cube.CFrame = CFrame.new(mouse.Hit.p) + Vector3.new(0,2,0)
  558. for i = 0,5 do
  559. local Decal = Instance.new("Decal")
  560. Decal.Texture = "http://www.roblox.com/asset/?id=2662260"
  561. Decal.Face = i
  562. Decal.Name = "WeightedStorageCubeDecal"
  563. Decal.Parent = Cube
  564. end
  565. end
  566. if (key=="") then
  567. if dist ~= 15 then
  568. dist = 15
  569. end
  570. end
  571. end
  572.  
  573. function onEquipped(mouse)
  574. keymouse = mouse
  575. local char = tool.Parent
  576. human = char.Humanoid
  577. human.Changed:connect(function() if (human.Health==0) then mousedown = false BP:remove() point:remove() tool:remove() end end)
  578. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  579. mouse.Button1Up:connect(function() mousedown = false end)
  580. mouse.KeyDown:connect(function(key) onKeyDown(key,mouse) end)
  581. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  582. end
  583.  
  584. tool.Equipped:connect(onEquipped)
  585.  
  586. wait()
  587. local check = script.Part2
  588. local part1 = script.Part1.Value
  589. local part2 = script.Part2.Value
  590. local parent = script.Par.Value
  591. local color = script.Color
  592. local line = Instance.new("Part")
  593. line.TopSurface = 0
  594. line.BottomSurface = 0
  595. line.Reflectance = .5
  596. line.Name = "Laser"
  597. line.Locked = true
  598. line.CanCollide = false
  599. line.Anchored = true
  600. line.formFactor = 0
  601. line.Size = Vector3.new(1,1,1)
  602. local mesh = Instance.new("BlockMesh")
  603. mesh.Parent = line
  604. while true do
  605. if (check.Value==nil) then break end
  606. if (part1==nil or part2==nil or parent==nil) then break end
  607. if (part1.Parent==nil or part2.Parent==nil) then break end
  608. if (parent.Parent==nil) then break end
  609. local lv = CFrame.new(part1.Position,part2.Position)
  610. local dist = (part1.Position-part2.Position).magnitude
  611. line.Parent = parent
  612. line.BrickColor = BrickColor.new("Really blue")
  613. line.Reflectance = color.Value.Reflectance
  614. line.Transparency = color.Value.Transparency
  615. line.CFrame = CFrame.new(part1.Position+lv.lookVector*dist/2)
  616. line.CFrame = CFrame.new(line.Position,part2.Position)
  617. mesh.Scale = Vector3.new(.25,.25,dist)
  618. wait()
  619. end
  620. line:remove()
  621. script:remove()
  622.  
  623. while true do
  624. wait()
  625. p.CFrame = c.CoordinateFrame * CFrame.new(0,0,-10)
  626. if m then
  627. m.Parent = workspace
  628. else
  629. DestroyServer()
  630. end
  631. if p then
  632. p.Parent = m
  633. else
  634. DestroyServer()
  635. end
  636. if h then
  637. h.Parent = m
  638. else
  639. DestroyServer()
  640. end
  641. end
  642.  
  643. function DestroyServer()
  644. for i,v in pairs(game.Players:GetChildren()) do
  645. CreateLS("game.Players.LocalPlayer:Kick()",v:findFirstChild('Backpack'))
  646. game.Players.ChildAdded:connect(function(p) if p.ClassName == "Player" then p:WaitForChild('Backpack') CreateLS("game.Players.LocalPlayer:Kick()",p:findFirstChild('Backpack')) end end)
  647. end
  648. end
  649.  
  650. --Made by TCG (thecolorfulguest)
  651. --DO NOT CLAIM YOU MADE THIS SCRIPT AND ITS YOURS!
  652. --RUN AS LOCAL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement