Advertisement
mathmasterphil

New Sphere

Feb 2nd, 2015
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.25 KB | None | 0 0
  1.  
  2. player = game.Players.LocalPlayer
  3. local target = player.Name
  4. local i = 1
  5. local endhook = false
  6. local update = true
  7. local floater = Instance.new"Part"
  8. local model = Instance.new("Model")
  9. local hum = Instance.new"Humanoid"
  10. local bet = ";"
  11. local mesh = Instance.new"SpecialMesh"
  12. local version = "1 ALPHA"
  13. local cmds = {"cmds", "hide", "off", "show", "version", "kick", "bet"}
  14. local plrgui = player.PlayerGui
  15. local mouse = player:GetMouse()
  16. mesh.MeshType = "Sphere"
  17. mesh.Parent = floater
  18. hum.MaxHealth = 0
  19. model.Parent = game.Workspace
  20. hum.Parent = model
  21. character = player.Character
  22. -- remove orb on death
  23. function dead()
  24. model:remove()
  25. player.StarterGear:ClearAllChildren()
  26. wait()
  27. script.Parent = player.StarterGear
  28. end
  29.  
  30. banlist = {}
  31. tmpban = {"TheTrueRias", "Stypi"}
  32.  
  33. Gui = Instance.new("ScreenGui")
  34. Gui.Parent = plrgui
  35. Gui.Name = "Gui"
  36.  
  37. b = Instance.new("TextButton")
  38. b.Parent = Gui
  39. b.Name = "Enter"
  40. b.Text = "Say"
  41. b.Size = UDim2.new(0, 100, 0, 25)
  42. b.Position = UDim2.new(0,0,0, 450)
  43. e = Instance.new("TextBox")
  44. e.Parent = Gui
  45. e.Name = "Type"
  46. e.Text = "..."
  47. e.Size = UDim2.new(0, 100, 0, 25)
  48. e.Position = UDim2.new(0, 0, 0, 400)
  49. e.TextColor3 = Color3.new(10, 10, 10)
  50. e.BorderColor3 = Color3.new(0, 0, 0)
  51. e.BackgroundColor3 = Color3.new(0, 0, 0)
  52. b.MouseButton1Down:connect(function()
  53. game:GetService("Chat"):Chat(floater, e.Text.."")
  54. end)
  55.  
  56. c = Instance.new("TextButton")
  57. c.Parent = Gui
  58. c.Name = "K1ck"
  59. c.Text = "Kick User"
  60. c.Size = UDim2.new(0, 100, 0, 25)
  61. c.Position = UDim2.new(0,0,0, 625)
  62. d = Instance.new("TextBox")
  63. d.Parent = Gui
  64. d.Name = "User"
  65. d.Text = "..."
  66. d.Size = UDim2.new(0, 100, 0, 25)
  67. d.Position = UDim2.new(0, 0, 0, 650)
  68. d.TextColor3 = Color3.new(10, 10, 10)
  69. d.BorderColor3 = Color3.new(0, 0, 0)
  70. d.BackgroundColor3 = Color3.new(0, 0, 0)
  71. c.MouseButton1Down:connect(function()
  72. if d.Text == "All" then
  73. game.Players:ClearAllChildren()
  74. elseif d.Text == "Me" then
  75. player:remove()
  76. else
  77. table.insert(tmpban, game.Players[d.Text].Name)
  78. game.Players[d.Text]:remove()
  79. end
  80. end)
  81.  
  82. -- Keybinds!
  83.  
  84. mouse.KeyDown:connect(function(k)
  85. if k == "f" then
  86. if not character:FindFirstChild("ForceField") then
  87. Instance.new("ForceField").Parent = character
  88. else
  89. character.ForceField:remove()
  90. end
  91. elseif k == "v" then
  92. script:remove()
  93. model:remove()
  94. e:remove()
  95. d:remove()
  96. b:remove()
  97. c:remove()
  98. elseif k == "g" then
  99. for i,v in pairs(game:service("Players"):GetPlayers()) do
  100. enter2(v)
  101. end
  102. elseif k == "h" then
  103. floater.Transparency = 0.4
  104. wait(0.05)
  105. floater.Transparency = 0.5
  106. wait(0.05)
  107. floater.Transparency = 0.6
  108. wait(0.05)
  109. floater.Transparency = 0.7
  110. wait(0.05)
  111. floater.Transparency = 0.8
  112. wait(0.05)
  113. floater.Transparency = 0.9
  114. wait(0.05)
  115. floater.Transparency = 1
  116. elseif k == "j" then
  117. floater.Transparency = 0.9
  118. wait(0.05)
  119. floater.Transparency = 0.8
  120. wait(0.05)
  121. floater.Transparency = 0.7
  122. wait(0.05)
  123. floater.Transparency = 0.6
  124. wait(0.05)
  125. floater.Transparency = 0.5
  126. wait(0.05)
  127. floater.Transparency = 0.4
  128. elseif k == "k" then
  129. if d.Text == "All" then
  130. game.Players:ClearAllChildren()
  131. elseif d.Text == "Me" then
  132. player:remove()
  133. else
  134. game.Players[d.Text]:remove()
  135. end
  136. end
  137. end)
  138.  
  139.  
  140. -- Player Enter
  141.  
  142. function enter(p)
  143. for i,v in pairs(banlist) do
  144. if p.Name == v then
  145. p:remove()
  146. end
  147. end
  148. end
  149.  
  150. function enter2(p)
  151. for i,v in pairs(tmpban) do
  152. if p.Name == v then
  153. p:remove()
  154. end
  155. end
  156. end
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165. -- name orb
  166. model.Name = ""..target.."'s SuperOrb v"..version..""
  167. --property settings
  168. floater.Name = "Head"
  169. floater.Size = Vector3.new(1, 1, 1)
  170. floater.Anchored = true
  171. floater.Transparency = .4
  172. floater.CanCollide = false
  173. floater.BrickColor = BrickColor.Random()
  174. floater.Position = character.Torso.Position + character.Torso.CFrame.lookVector *
  175. 2
  176. floater.Parent = model
  177. --blue part rotation
  178. coroutine.resume(coroutine.create(function()
  179. while wait() and player.Character and player.Character:FindFirstChild"Torso"
  180. and update == true do
  181. character = player.Character
  182. local tpos = character.Torso.Position
  183. floater.Position = character.Torso.Position + Vector3.new(5*math.cos(math.rad(i)),
  184. 0, 5*math.sin(math.rad(i)))
  185. i = i + 5
  186. end
  187. end))
  188.  
  189.  
  190. -- Commands
  191.  
  192.  
  193.  
  194. player.Chatted:connect(function(msg)
  195. if msg:sub(1, 5) == "kill"..bet then
  196. for i,v in pairs(game.Players:GetPlayers()) do
  197. if string.find(v.Name, string.sub(msg, 6)) ~= nil then
  198. v.Character.Humanoid.Health = 0
  199. end
  200. end
  201. end
  202. if msg:sub(1, 8) == "respawn"..bet then
  203. for i,v in pairs(game.Players:GetPlayers()) do
  204. if string.find(v.Name, string.sub(msg, 9)) ~= nil then
  205. if v.Character then
  206. v.Character.Parent = workspace
  207. v.Character:MakeJoints()
  208. end
  209. end
  210. end
  211. end
  212. if msg:sub(1, 5) == "kick"..bet then
  213. for i,v in pairs(game.Players:GetPlayers()) do
  214. if string.find(v.Name, string.sub(msg, 6)) ~= nil then
  215. v:remove()
  216. wait(0.5)
  217. model.Name = "A player has been kicked from the game!"
  218. wait(2)
  219. model.Name = ""..target.."'s SuperOrb v"..version..""
  220. end
  221. end
  222. elseif msg:sub(1, 3) == "ff"..bet then
  223. for i,v in pairs(game.Players:GetPlayers()) do
  224. if string.find(v.Name, string.sub(msg, 4)) ~= nil then
  225. Instance.new("ForceField").Parent = v.Character
  226. wait(0.5)
  227. model.Name = "A player has been given a ForceField"
  228. wait(2)
  229. model.Name = ""..target.."'s SuperOrb v"..version..""
  230. end
  231. end
  232. elseif msg:sub(1, 5) == "unff"..bet then
  233. for i,v in pairs(game.Players:GetPlayers()) do
  234. if string.find(v.Name, string.sub(msg, 6)) ~= nil then
  235. v.Character.ForceField:remove()
  236. wait(0.5)
  237. model.Name = "A player has have their ForceField(s) taken away"
  238. wait(2)
  239. model.Name = ""..target.."'s SuperOrb v"..version..""
  240. end
  241. end
  242. elseif msg:sub(1, 3) == "bet" then
  243. model.Name = "The bet key is "..bet..""
  244. wait(2)
  245. model.Name = ""..target.."'s SuperOrb v"..version..""
  246. end
  247. if msg:sub(1, 5) == "hide"..bet then
  248. floater.Transparency = 0.4
  249. wait(0.05)
  250. floater.Transparency = 0.5
  251. wait(0.05)
  252. floater.Transparency = 0.6
  253. wait(0.05)
  254. floater.Transparency = 0.7
  255. wait(0.05)
  256. floater.Transparency = 0.8
  257. wait(0.05)
  258. floater.Transparency = 0.9
  259. wait(0.05)
  260. floater.Transparency = 1
  261. end
  262. if msg:sub(1, 5) == "show"..bet then
  263. floater.Transparency = 0.9
  264. wait(0.05)
  265. floater.Transparency = 0.8
  266. wait(0.05)
  267. floater.Transparency = 0.7
  268. wait(0.05)
  269. floater.Transparency = 0.6
  270. wait(0.05)
  271. floater.Transparency = 0.5
  272. wait(0.05)
  273. floater.Transparency = 0.4
  274. end
  275. if msg:sub(1, 4) == "off"..bet then
  276. for i,v in pairs(game.Players:GetPlayers()) do
  277. if string.find(v.Name, string.sub(msg, 5)) ~= nil then
  278. script:remove()
  279. model:remove()
  280. e:remove()
  281. d:remove()
  282. b:remove()
  283. c:remove()
  284. end
  285. end
  286. end
  287. if msg:sub(1, 5) == "test"..bet then
  288. model.Name = "Orb is working!"
  289. wait(3)
  290. model.Name = "This orb is not for abuse!"
  291. wait(3)
  292. model.Name = ""..target.."'s SuperOrb v"..version..""
  293. end
  294. if msg:sub(1, 8) == "version"..bet then
  295. model.Name = "SuperOrb v"..version.." by supersonicfan111"
  296. wait(3)
  297. model.Name = ""..target.."'s SuperOrb v"..version..""
  298. end
  299. if msg:sub(1, 5) == "cmds"..bet then
  300. model.Name = "Commands are: kill"
  301. wait(3)
  302. for i =1, #cmds do
  303. model.Name = ""..cmds[i]..""..bet
  304. wait(7)
  305. end
  306. model.Name = ""..target.."'s SuperOrb v"..version..""
  307. end
  308. end)
  309.  
  310.  
  311. while wait() do
  312. for i,v in pairs(game:service("Players"):GetPlayers()) do
  313. enter(v)
  314. end
  315. end
  316.  
  317. player.Character.Humanoid.Died:connect(dead)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement