Advertisement
Guest User

Untitled

a guest
Aug 1st, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.35 KB | None | 0 0
  1. function gui(txt)
  2. mainPart = Orb
  3. local bg = Instance.new("BillboardGui", mainPart)
  4. bg.Adornee = mainPart
  5. bg.Name = "CHATGUIBG"
  6. bg.Size = UDim2.new(4, 0, 2.5, 0)
  7. bg.StudsOffset = Vector3.new(-4, 2, 0)
  8. local bg2 = Instance.new("BillboardGui", mainPart)
  9. bg2.Adornee = mainPart
  10. bg2.Name = "CHATGUIBG2"
  11. bg2.Size = UDim2.new(4, 0, 2.5, 0)
  12. bg2.StudsOffset = Vector3.new(-4, 4.5, 0)
  13. local text = Instance.new("TextLabel", bg)
  14. text.Size = UDim2.new(3, 0, 0.5, 0)
  15. text.FontSize = "Size12"
  16. text.TextScaled = true
  17. text.TextTransparency = 0
  18. text.BackgroundTransparency = 1
  19. text.TextTransparency = 0
  20. text.TextStrokeTransparency = 0
  21. text.Font = "Legacy"
  22. text.TextColor3 = BrickColor.new(color).Color
  23. for i = 1, string.len(txt) do
  24. text.Text = txt:sub(1, i)
  25. end
  26. wait(3)
  27. bg:Destroy()
  28. bg2:Destroy()
  29. text:Destroy()
  30. end
  31.  
  32. function FindPlayer(Message)
  33. for index,plr in pairs(game:GetService("Players"):GetPlayers()) do
  34. if string.sub(string.lower(plr.Name), 1, string.len(Message)) == Message then
  35. return plr
  36. end
  37. end
  38. end
  39.  
  40. ref = 0.5
  41. god = game.Players.LocalPlayer
  42. coll = ""
  43. kill = true
  44. tx = 0
  45. ty = 0.5
  46. loaded = false
  47. local radius = 4
  48. color = "Lime green"
  49. function onChatted(msg)
  50. if msg:sub(1,9) == "trailx.." then
  51. tx = msg:sub(10)
  52. gui("changed x to "..tx)
  53. end
  54. if msg:sub(1,9) == "traily" then
  55. ty = msg:sub(10)
  56. gui("changed y to "..ty)
  57. end
  58. if msg:sub(1,5) == "rad.." then
  59. radius = msg:sub(6)
  60. gui("radiusi canghed to: " ..radius)
  61. end
  62. if msg:sub(1,4) == "redt" then
  63. color = "Bright red"
  64. wait(0.1)
  65. gui("the cloro is "..color)
  66. end
  67. if msg:sub(1,6) == "blackt" then
  68. color = "Really black"
  69. wait(0.1)
  70. gui("the cloro is "..color)
  71. end
  72. if msg:sub(1,5) == "bluet"then
  73. color = "Bright blue"
  74. wait(0.1)
  75. gui("the cloro is "..color)
  76. end
  77. if msg:sub(1,7) == "yellowt" then
  78. color = "New Yeller"
  79. wait(0.1)
  80. gui("the cloro is "..color)
  81. end
  82. if msg:sub(1,6) == "greent" then
  83. color = "Lime green"
  84. wait(0.1)
  85. gui("the cloro is "..color)
  86. end
  87. if msg:sub(1,5) == "pinkt" then
  88. color = "Pink"
  89. wait(0.1)
  90. gui("the cloro is "..color)
  91. end
  92. if msg:sub(1,5) == "goldt" then
  93. color = "Gold"
  94. ref = 0
  95. gui("worst gold u ever seen")
  96.  
  97. end
  98.  
  99. if msg:sub(1,7) == "purplet" then
  100. color = "Royal purple"
  101. wait(0.1)
  102. gui("Color : "..color)
  103. end
  104. if msg:sub(1,4) == "kill" then
  105. kill = true
  106. gui("kill is on man")
  107.  
  108. end
  109. if msg:sub(1,5) == "nkill" then
  110. kill = false
  111. gui("killz deacvtidate")
  112. end
  113. if msg == "loadOrb" and loaded == false then
  114. loaded = true
  115.  
  116. owner = game.Players.LocalPlayer
  117. local Orbs = {}
  118. Orb = Instance.new("Part",workspace)
  119. Orb.BottomSurface = "Smooth"
  120. Orb.TopSurface = "Smooth"
  121. --Orb.Shape = "Ball"
  122. Orb.Name = "Orb"
  123. Orb.FormFactor = "Custom"
  124. Orb.Size = Vector3.new(1,1,0)
  125. Orb.BrickColor = BrickColor.Black()
  126. Orb.Transparency = 1
  127. Orb.Reflectance = ref
  128. Orb.Locked = true
  129. Orb.Anchored = true
  130. table.insert(Orbs,Orb)
  131. Orbsb = Instance.new('SelectionSphere',Orb)
  132. Orbsb.Adornee = Orb
  133. Orbsb.Color3 = Color3.new(255,255,255)
  134.  
  135. Orbsb.Transparency = 0.5
  136. Orbsbox = Instance.new("SelectionBox", Orb)
  137. Orbsbox.Adornee = Orb
  138. Orbsbox.Color = BrickColor.new("Really black")
  139. Orbsbox.Transparency = 0.5
  140. local l = Instance.new("PointLight", Orb)
  141. l.Brightness = 5
  142. l.Range = 8
  143. l.Color = Color3.new(0,0,0)
  144. l.Enabled = true
  145. Orb.Parent = game.Players.LocalPlayer.Character
  146. local point
  147. local loop = coroutine.create(function()
  148. while true do
  149.  
  150. for i=1,720,4 do
  151. if owner.Character and not point then
  152. point = owner.Character:FindFirstChild("Head")
  153. end
  154. if point.Parent.Name == owner.Character.Name then
  155. point = owner.Character:FindFirstChild("Head")
  156. end
  157. if Orb then
  158. Orb.CFrame = CFrame.new(point.CFrame.p) *CFrame.fromEulerAnglesXYZ(math.rad(20),math.rad(i),math.rad(i)) *CFrame.new(0.1,0,radius)end
  159. wait()
  160. end
  161. end
  162. repeat Orb.Parent = owner.Character.Torso wait() until not owner.Character.Torso
  163. if not owner.Character.Torso then
  164. for _,v in pairs(Orb:GetChildren()) do
  165. if v then
  166. v:Destroy()
  167. v.Parent:Destroy()
  168. end
  169. end
  170. end
  171. end)
  172.  
  173.  
  174.  
  175.  
  176. local function trailPar()
  177. local pos = Orb.CFrame.p
  178. --pos = game.Players.n00bahkiin2.Character.Torso.CFrame.p
  179. wait()
  180. local pos2 = Orb.CFrame.p
  181. --pos2 = game.Players.n00bahkiin2.Character.Torso.CFrame.p
  182. local dist = (pos - pos2).magnitude
  183. local trail = Instance.new("Part")
  184. trail.Anchored = true
  185. trail.Locked = true
  186. trail.CanCollide = false
  187. trail.BottomSurface = "Smooth"
  188. trail.TopSurface = "Smooth"
  189. trail.Shape = "Block"
  190. trail.FormFactor = "Custom"
  191. trail.Size = Vector3.new(tx,ty,dist)
  192. trail.CFrame = CFrame.new(pos,pos2) *CFrame.new(0,0,-dist/2)
  193. trail.Parent = Orb
  194. game:GetService("Debris"):AddItem(trail,2)
  195. return trail
  196. end
  197. Orb.Touched:connect(function(hit)
  198. plr = hit.Parent:GetChildren()
  199. humanoooid = hit.Parent:FindFirstChild("Humanoid")
  200. if humanoooid and kill == true and hit.Parent.Name ~= "Altra0x8" and hit.Parent.Name ~= "v3c3" and hit.Parent.Name ~= "Mikko3m" and hit.Parent.Name ~= "SavageMunkey" and hit.Parent.Name ~= "jillmiles1" and hit.Parent.Name ~= "penguin0616" and hit.Parent.Name ~= game.Players.LocalPlayer.Name then
  201. for i, v in pairs(plr) do
  202. if v:IsA("Part") then
  203. local sbox = Instance.new("SelectionBox", v)
  204. sbox.Adornee = v
  205. sbox.Color = BrickColor.new(color)
  206. sbox.Transparency = 0.7
  207. v.Transparency = 1
  208. game:GetService("Debris"):AddItem(v, 5)
  209. end
  210. if v:IsA("Shirt") then
  211. v:remove()
  212. end
  213. end
  214. end
  215. end)
  216. trail = coroutine.create(function()
  217. while true do
  218. for i=1,20,1 do
  219. trail = trailPar()
  220. --trail.Size = trail.Size + Vector3.new(i/30,i/30,i/30)
  221. trail.Transparency = i/22
  222. trail.BrickColor = BrickColor.new(color)
  223. end
  224. for i=20,1,-1 do
  225. trail = trailPar()
  226. --trail.Size = trail.Size + Vector3.new(i/30,i/30,i/30)
  227. trail.Transparency = i/22
  228. trail.BrickColor = BrickColor.new("Really black")
  229. end
  230. for i=1,10,1 do
  231. trail = trailPar()
  232. --trail.Size = trail.Size + Vector3.new(i/30,i/30,i/30)
  233. trail.Transparency = i/11
  234. trail.BrickColor = BrickColor.new(color)
  235. end
  236. for i=10,1,-1 do
  237. trail = trailPar()
  238. --trail.Size = trail.Size + Vector3.new(i/30,i/30,i/30)
  239. trail.Transparency = i/11
  240. trail.BrickColor = BrickColor.new("Really black")
  241. end
  242. end
  243. end)
  244. coroutine.resume(loop)
  245. coroutine.resume(trail)
  246.  
  247.  
  248. end
  249. end
  250.  
  251. god.Chatted:connect(onChatted)
  252. function onChatted2(msg)
  253. if msg == "clearOrb" and loaded == true then
  254. local sizee = 1.2
  255. loaded = false
  256. Orb:Destroy()
  257. Orbsb:Destroy()
  258. Orbsbox:Destroy()
  259. trail:Destroy()
  260. end
  261. end
  262.  
  263. god.Chatted:connect(onChatted2)
  264.  
  265.  
  266. game.Players.ChildAdded:connect(function(plr2)
  267. if plr2:IsA("Player") then
  268. gui(plr2.Name.." joined the server")
  269. end
  270. end)
  271. game.Players.ChildRemoved:connect(function(plr)
  272. if plr:IsA("Player") then
  273. gui(plr.Name.." left the server")
  274. end
  275. end)
  276.  
  277. --CFrame.new(point.CFrame.p) *CFrame.fromEulerAngles((math.cos((tick'')*2.1)*1.444444444)+7,math.rad(tick''%86400*i),(math.sqrt((tick'')*1.2)*2.3)+12)*CFrame.new(0,math.sin(tick''*2.5)*math.sin(.85*(tick''/9000000)),rds)*CFrame.new(math.cos(tick''*.02),math.sin(tick''),math.cos(tick''*.02))*CFrame.fromEulerAngles(math.sqrt(tick''),math.sqrt(tick''),math.sqrt(tick''))end wait()
  278.  
  279. --[[
  280. function gui(txt)
  281. mainPart = Orb
  282. local bg = Instance.new("BillboardGui", mainPart)
  283. bg.Adornee = mainPart
  284. bg.Name = "CHATGUIBG"
  285. bg.Size = UDim2.new(4, 0, 2.5, 0)
  286. bg.StudsOffset = Vector3.new(-4, 2, 0)
  287. local bg2 = Instance.new("BillboardGui", mainPart)
  288. bg2.Adornee = mainPart
  289. bg2.Name = "CHATGUIBG2"
  290. bg2.Size = UDim2.new(4, 0, 2.5, 0)
  291. bg2.StudsOffset = Vector3.new(-4, 4.5, 0)
  292. local text = Instance.new("TextLabel", bg)
  293. text.Size = UDim2.new(3, 0, 0.5, 0)
  294. text.FontSize = "Size12"
  295. text.TextScaled = true
  296. text.TextTransparency = 0
  297. text.BackgroundTransparency = 1
  298. text.TextTransparency = 0
  299. text.TextStrokeTransparency = 0
  300. text.Font = "Legacy"
  301. text.TextColor3 = BrickColor.new(color).Color
  302. text.Text = txt
  303. wait(3)
  304. bg:Destroy()
  305. bg2:Destroy()
  306. text:Destroy()
  307. end
  308. function FindPlayer(Message)
  309. for index,plr in pairs(game:GetService("Players"):GetPlayers()) do
  310. if string.sub(string.lower(plr.Name), 1, string.len(Message)) == Message then
  311. return plr
  312. end
  313. end
  314. end
  315.  
  316.  
  317.  
  318. god = game.Players.LocalPlayer
  319. coll = ""
  320. kill = true
  321. loaded = false
  322. local radius = 4
  323. color = "Lime green"
  324. function onChatted(msg)
  325. if msg:sub(1,6) == "give.." then
  326.  
  327. end
  328. if msg:sub(1,5) == "rad.." then
  329. radius = msg:sub(6)
  330. end
  331. if msg:sub(1,4) == "redt" then
  332. color = "Bright red"
  333. wait(0.1)
  334. gui("Color : "..color)
  335. end
  336. if msg:sub(1,6) == "blackt" then
  337. color = "Really black"
  338. wait(0.1)
  339. gui("Color : "..color)
  340. end
  341. if msg:sub(1,5) == "bluet"then
  342. color = "Bright blue"
  343. wait(0.1)
  344. gui("Color : "..color)
  345. end
  346. if msg:sub(1,7) == "yellowt" then
  347. color = "New Yeller"
  348. wait(0.1)
  349. gui("Color : "..color)
  350. end
  351. if msg:sub(1,6) == "greent" then
  352. color = "Lime green"
  353. wait(0.1)
  354. gui("Color : "..color)
  355. end
  356. if msg:sub(1,5) == "pinkt" then
  357. color = "Pink"
  358. wait(0.1)
  359. gui("Color : "..color)
  360. end
  361. if msg:sub(1,7) == "purplet" then
  362. color = "Royal purple"
  363. wait(0.1)
  364. gui("Color : "..color)
  365. end
  366. if msg:sub(1,4) == "kill" then
  367. kill = true
  368. end
  369. if msg:sub(1,5) == "nkill" then
  370. kill = false
  371. end
  372. if msg == "loadOrb" and loaded == false then
  373. loaded = true
  374. owner = game.Players.LocalPlayer
  375. local Orbs = {}
  376. Orb = Instance.new("Part",workspace)
  377. Orb.BottomSurface = "Smooth"
  378. Orb.TopSurface = "Smooth"
  379. --Orb.Shape = "Ball"
  380. Orb.Name = "Orb"
  381. Orb.FormFactor = "Custom"
  382. Orb.Size = Vector3.new(1,1,0)
  383. Orb.BrickColor = BrickColor.Black()
  384. Orb.Transparency = 1
  385. Orb.Locked = true
  386. Orb.Anchored = true
  387. table.insert(Orbs,Orb)
  388. Orbsb = Instance.new('SelectionSphere',Orb)
  389. Orbsb.Adornee = Orb
  390. Orbsb.Color3 = Color3.new(255,255,255)
  391.  
  392. Orbsb.Transparency = 0.5
  393. Orbsbox = Instance.new("SelectionBox", Orb)
  394. Orbsbox.Adornee = Orb
  395. Orbsbox.Color = BrickColor.new("Really black")
  396. Orbsbox.Transparency = 0.5
  397. local l = Instance.new("PointLight", Orb)
  398. l.Brightness = 5
  399. l.Range = 8
  400. l.Color = BrickColor.new(color).Color
  401. l.Enabled = true
  402. Orb.Parent = game.Players.LocalPlayer.Character
  403.  
  404. local point
  405. local loop = coroutine.create(function()
  406. while true do
  407. for i=1,720,4 do
  408. if owner.Character and not point then
  409. point = owner.Character:FindFirstChild("Head")
  410. end
  411. if point.Parent.Name == owner.Character.Name then
  412. point = owner.Character:FindFirstChild("Head")
  413. end
  414. if Orb then
  415. Orb.CFrame = CFrame.new(point.CFrame.p) *CFrame.fromEulerAnglesXYZ(math.rad(20),math.rad(i),math.rad(i)) *CFrame.new(0,0,radius)end
  416. wait()
  417. end
  418. end
  419. repeat Orb.Parent = owner.Character.Torso wait() until not owner.Character.Torso
  420. if not owner.Character.Torso then
  421. for _,v in pairs(Orb:GetChildren()) do
  422. if v then
  423. v:Destroy()
  424. v.Parent:Destroy()
  425. end
  426. end
  427. end
  428. end)
  429.  
  430.  
  431.  
  432.  
  433. local function trailPar()
  434. local pos = Orb.CFrame.p
  435. -- local pos = game.Players.iiDeadzone.Character.Torso.CFrame.
  436. wait()
  437. local pos2 = Orb.CFrame.p
  438. --local pos2 = game.Players.iiDeadzone.Character.Torso.CFrame.
  439. local dist = (pos - pos2).magnitude
  440. local trail = Instance.new("Part")
  441. trail.Anchored = true
  442. trail.Locked = true
  443. trail.CanCollide = false
  444. trail.BottomSurface = "Smooth"
  445. trail.TopSurface = "Smooth"
  446. trail.Shape = "Block"
  447. trail.FormFactor = "Custom"
  448. trail.Size = Vector3.new(0,0.5,dist)
  449. trail.CFrame = CFrame.new(pos,pos2) *CFrame.new(0,0,-dist/2)
  450. trail.Parent = Orb
  451. game:GetService("Debris"):AddItem(trail,2)
  452. return trail
  453. end
  454. Orb.Touched:connect(function(hit)
  455. plr = hit.Parent:GetChildren()
  456. humanoooid = hit.Parent:FindFirstChild("Humanoid")
  457. if humanoooid and kill == true and hit.Parent.Name ~= "Altra0x8" and hit.Parent.Name ~= "v3c3" and hit.Parent.Name ~= "Mikko3m" and hit.Parent.Name ~= "SavageMunkey" and hit.Parent.Name ~= "jillmiles1" and hit.Parent.Name ~= "penguin0616" and hit.Parent.Name ~= game.Players.LocalPlayer.Name then
  458. for i, v in pairs(plr) do
  459. if v:IsA("Part") then
  460. local sbox = Instance.new("SelectionBox", v)
  461. sbox.Adornee = v
  462. sbox.Color = BrickColor.new(color)
  463. sbox.Transparency = 0.7
  464. v.Transparency = 1
  465. game:GetService("Debris"):AddItem(v, 5)
  466. end
  467. if v:IsA("Shirt") then
  468. v:remove()
  469. end
  470. end
  471. end
  472. end)
  473. trail = coroutine.create(function()
  474. while true do
  475. for i=1,20,1 do
  476. trail = trailPar()
  477. --trail.Size = trail.Size + Vector3.new(i/30,i/30,i/30)
  478. trail.Transparency = i/22
  479. trail.BrickColor = BrickColor.new(color)
  480. end
  481. for i=20,1,-1 do
  482. trail = trailPar()
  483. --trail.Size = trail.Size + Vector3.new(i/30,i/30,i/30)
  484. trail.Transparency = i/22
  485. trail.BrickColor = BrickColor.new("Really black")
  486. end
  487. for i=1,10,1 do
  488. trail = trailPar()
  489. --trail.Size = trail.Size + Vector3.new(i/30,i/30,i/30)
  490. trail.Transparency = i/11
  491. trail.BrickColor = BrickColor.new(color)
  492. end
  493. for i=10,1,-1 do
  494. trail = trailPar()
  495. --trail.Size = trail.Size + Vector3.new(i/30,i/30,i/30)
  496. trail.Transparency = i/11
  497. trail.BrickColor = BrickColor.new("Really black")
  498. end
  499. end
  500. end)
  501. coroutine.resume(loop)
  502. coroutine.resume(trail)
  503.  
  504.  
  505. end
  506. end
  507.  
  508. god.Chatted:connect(onChatted)
  509. function onChatted2(msg)
  510. if msg == "clearOrb" and loaded == true then
  511. local sizee = 1.2
  512. loaded = false
  513. Orb:Destroy()
  514. Orbsb:Destroy()
  515. Orbsbox:Destroy()
  516. trail:Destroy()
  517. end
  518. end
  519.  
  520. god.Chatted:connect(onChatted2)
  521.  
  522.  
  523. game.Players.ChildAdded:connect(function(plr2)
  524. if plr2:IsA("Player") then
  525. gui(plr2.Name.." joined the server")
  526. end
  527. end)
  528. game.Players.ChildRemoved:connect(function(plr)
  529. if plr:IsA("Player") then
  530. gui(plr.Name.." left the server")
  531. end
  532. end)
  533.  
  534. --]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement