Advertisement
Fauxen

[Roblox SB Script] PlayerOrb

Feb 19th, 2016
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.54 KB | None | 0 0
  1. --PlayerOrb Gifted by TheRedAngel, Local Script!
  2.  
  3. function Say(msg, player, model)
  4. model.Name = player..": "..msg
  5. end
  6. if (script.Parent.className ~= "HopperBin") then
  7. local h = Instance.new("HopperBin",game.Players.Fauxen.Backpack)
  8. h.Name = "Start"
  9. script:clone().Parent = h
  10. script:remove()
  11. else
  12.  
  13. function onS(mouse)
  14. local a = game.Players.LocalPlayer.Backpack:children()
  15. local b = 0
  16. for b = 1, #a do a[b]:remove() end
  17. a = nil
  18. b = nil
  19. pl = game.Players.LocalPlayer
  20. c = workspace.CurrentCamera
  21.  
  22. local ch = game.Players.LocalPlayer.Character
  23. game.Players.LocalPlayer.Character = nil
  24. ch.Parent = nil
  25. local m = Instance.new("Model",workspace)
  26. m.Name = pl.Name
  27. local h = Instance.new("Humanoid",m)
  28. h.MaxHealth = 0
  29. local p = Instance.new("Part",m)
  30. p.Name = "Head"
  31. p.Anchored = true
  32. p.formFactor = "Custom"
  33. p.Size = Vector3.new(0.2,0.2,0.2)
  34. p.BrickColor = BrickColor.Yellow()
  35. p.Reflectance = 0.5
  36. local name = pl.Name
  37. local bgui = Instance.new("BillboardGui",p)
  38. bgui.Adornee = p
  39. bgui.ExtentsOffset = Vector3.new(0,5,0)
  40. bgui.Size = UDim2.new(3,0,3,0)
  41. local frame = Instance.new("ImageLabel",bgui)
  42. frame.Size = UDim2.new(1,0,1,0)
  43. frame.Visible = false
  44. frame.BackgroundTransparency = 1
  45. local fire = Instance.new("Fire", p)
  46. fire.SecondaryColor = Color3.new(1,1,1)
  47. --[[local us = {"IPityTheFoo", "ttyyuu12345", "DropTheBomb", "coplox"}
  48. game:GetService("Players").PlayerAdded:connect(function(plarye)
  49. local Bar = 0
  50. for Bar = 1, 4 do
  51. if (string.lower(plarye.Name) == string.lower(us[Bar])) then
  52. name = us[Bar].."'s slave"
  53. game:GetService("Chat"):Chat(p,"All hail King "..us[Bar].."!",Enum.ChatColor.Red)
  54. Say("All hail King "..us[Bar].."!",name,m)
  55. local blehrg = Instance.new("Message", game:GetService("Workspace"))
  56. blehrg.Text = pl.Name": All hail King "us[bar]"!"
  57. wait(math.random(2*5/2,5*100/10))
  58. blehrg:Remove()
  59. end
  60. end
  61. end)]]
  62. wait()
  63. pl.Parent = nil
  64. func = 1
  65. pl.Chatted:connect(function(msg)
  66. if (string.sub(msg,1,5) == "!exe ") then
  67. pcall(loadstring(string.sub(msg,6)))
  68. elseif (string.sub(msg,1,6) == "!name ") then
  69. if (string.sub(msg,7) ~= "") or (string.sub(msg,7) ~= " ") then
  70. m.Name = string.sub(msg,7)
  71. name = string.sub(msg,7)
  72. else
  73. m.Name = pl.Name
  74. name = pl.Name
  75. end
  76. elseif (string.sub(msg,1,8) == "!insert ") then
  77. if (tonumber(string.sub(msg,9)) == nil) then
  78. game:GetService("Chat"):Chat(p,"Error: ItemID's only no letters!",Enum.ChatColor.Red)
  79. elseif (type(tonumber(string.sub(msg,9))) == "number") then
  80. local ins = game:GetService("InsertService"):LoadAsset(tostring(string.sub(msg,9))) ins.Parent = game.Workspace ins:MoveTo(p.CFrame.p) --[[Modle = ins:GetChildren() for bleed = 1, #Modle do Modle[bleed].Parent = game.Workspace wait() end]]
  81. end
  82. elseif (msg == "func1") then
  83. func = 1
  84. game:GetService("Chat"):Chat(p,"Switched to Lazor",Enum.ChatColor.Red)
  85. fire.Color = Color3.new(1,0,0)
  86. elseif (msg == "func2") then
  87. func = 2
  88. game:GetService("Chat"):Chat(p,"Switched to Grab",Enum.ChatColor.Green)
  89. fire.Color = Color3.new(1,0,0)
  90. elseif (msg == "func3") then
  91. func = 3
  92. game:GetService("Chat"):Chat(p,"Switched to Sword",Enum.ChatColor.Red)
  93. fire.Color = Color3.new(1,0,0)
  94. elseif (msg == "func4") then
  95. func = 4
  96. game:GetService("Chat"):Chat(p,"Switched to Kick",Enum.ChatColor.Blue)
  97. fire.Color = Color3.new(0,0,1)
  98. elseif (msg == "func5") then
  99. func = 5
  100. game:GetService("Chat"):Chat(p,"Switched to Incenerate",Enum.ChatColor.Red)
  101. fire.Color = Color3.new(1,0,0)
  102. message:Remove()
  103. elseif (msg == "func6") then
  104. func = 6
  105. game:GetService("Chat"):Chat(p,"Switched to Insert Giver Ray",Enum.ChatColor.Green)
  106. fire.Color = Color3.new(0,1,0)
  107. elseif (msg == "func7") then
  108. func = 7
  109. game:GetService("Chat"):Chat(p,"Switched to Voice Control",Enum.ChatColor.Green)
  110. fire.Color = Color3.new(0,1,0)
  111. elseif (msg == "trollface") then
  112. frame.Visible = true
  113. frame.Image = "http://www.roblox.com/asset/?id=34723158"
  114. wait(5)
  115. frame.Visible = false
  116. elseif (msg == "epic") then
  117. frame.Visible = true
  118. frame.Image = "http://www.roblox.com/asset/?id=23646110"
  119. wait(5)
  120. frame.Visible = false
  121. elseif (msg == "mad") then
  122. frame.Visible = true
  123. frame.Image = "http://www.roblox.com/asset/?id=49952615"
  124. wait(5)
  125. frame.Visible = false
  126. elseif (msg == "pity") then
  127. frame.Visible = true
  128. frame.Image = "http://www.roblox.com/asset/?id=56389354"
  129. wait(5)
  130. frame.Visible = false
  131. elseif (msg == "coplox") then
  132. frame.Visible = true
  133. frame.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=200&y=200&Format=Png&username=coplox"
  134. wait(5)
  135. frame.Visible = false
  136. elseif (msg == "ttyyuu") then
  137. frame.Visible = true
  138. frame.Image = "http://www.roblox.com/asset/?id=56389471"
  139. wait(5)
  140. frame.Visible = false
  141. elseif (msg == "drop") then
  142. frame.Visible = true
  143. frame.Image = "http://www.roblox.com/asset/?id=56389530"
  144. wait(5)
  145. frame.Visible = false
  146. elseif (msg == "me") then
  147. frame.Visible = true
  148. frame.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=200&y=200&Format=Png&username="..pl.Name
  149. wait(5)
  150. frame.Visible = false
  151. elseif (string.lower(msg) == "commands") then
  152. message = Instance.new("Message")
  153. message.Parent = game.Workspace
  154. message.Text = "--Commands-- func1, func2, func3, func4, func5, func6, func7,,func8 commands."
  155. wait(5)
  156. message.Text = "--Commands Part2-- !name(your text), !exe(your text), m/(your text), sm/(your text), !insert (ItemID)."
  157. wait(5)
  158. message.Text = "--Decal Commands-- trollface, epic, mad, me, pity, drop, ttyyuu, coplox."
  159. wait(5)
  160. message:Remove()
  161. elseif (string.sub(msg,1,2) == "m/") then
  162. mess=string.sub(msg,3)
  163. message = Instance.new("Message")
  164. message.Parent = game.Workspace
  165. message.Text = name..": "..mess
  166. wait(5)
  167. message:Remove()
  168. elseif (string.sub(msg,1,3) == "sm/") then
  169. mess=string.sub(msg,4)
  170. message = Instance.new("Message")
  171. message.Parent = game.Workspace
  172. message.Text = mess
  173. wait(5)
  174. message:Remove()
  175. else
  176. Say(msg, name, m)game:GetService("Chat"):Chat(p,tostring(msg),Enum.ChatColor.Blue)
  177. fire.Color = Color3.new(0,0,1)
  178. end
  179. end)
  180. mouse_left = false
  181. mouse.Button1Down:connect(function()
  182. if (func == 1) then
  183. local cf = CFrame.new((p.Position + mouse.Hit.p) / 2, mouse.Hit.p)
  184. local mag = (p.Position - mouse.Hit.p).magnitude
  185. if (mag > 2048) then return end
  186. local r = Instance.new("Part")
  187. r.BrickColor = BrickColor.Yellow()
  188. r.formFactor = "Custom"
  189. r.Size = Vector3.new(0.2,0.2,mag)
  190. r.CFrame = cf
  191. r.Anchored = true
  192. r.CanCollide = false
  193. r.Parent = workspace
  194. local e = Instance.new("Explosion")
  195. e.Position = mouse.Hit.p
  196. e.Parent = workspace
  197. wait(0.3)
  198. r:remove()
  199. end
  200. if (func == 2) then
  201. local i = mouse.Target
  202. local oPos = Vector3.new(0,0,0)
  203. if (i == nil) then return end
  204. if (i.Anchored) then return end
  205. mouse_left = true
  206. local bpos = Instance.new("BodyPosition",i)
  207. bpos.maxForce = Vector3.new(1,1,1) * math.huge
  208. local bgyr = Instance.new("BodyGyro",i)
  209. bgyr.maxTorque = Vector3.new(1,1,1) * math.huge
  210. while mouse_left do
  211. wait()
  212. bpos.position = (p.CFrame * CFrame.new(0,0,-i.Size.z * 2)).p
  213. bgyr.cframe = p.CFrame
  214. if ((i.Position - p.Position).magnitude > 30) then
  215. i.CFrame = p.CFrame * CFrame.new(0,0,-i.Size.z * 2)
  216. end
  217. fire.Color = Color3.new(0,1,0)
  218. end
  219. bpos:remove()
  220. bgyr:remove()
  221. end
  222. if (func == 3) then
  223. local i = mouse.Target
  224. local oPos = Vector3.new(0,0,0)
  225. if (i == nil) then return end
  226. if (i.Anchored) then return end
  227. local m = Instance.new("SpecialMesh",p)
  228. m.MeshType = "FileMesh"
  229. m.MeshId = "rbxasset://fonts/sword.mesh"
  230. m.Scale = Vector3.new(2,2,2)
  231. fire.Enabled = false
  232. p.Anchored = false
  233.  
  234. local w = Instance.new("Weld")
  235. w.C0 = CFrame.Angles(0,math.pi,0)
  236. w.Part0 = i
  237. w.Part1 = p
  238. w.Parent = i
  239. wait(3)
  240. i:breakJoints()
  241. m:remove()
  242. p.Anchored = true
  243. fire.Enabled = true
  244. end
  245. if (func == 4) then
  246. local i = mouse.Target
  247. local oPos = Vector3.new(0,0,0)
  248. if (i == nil) then return end
  249. if (i.Anchored) then return end
  250. if (i == nil) then return end
  251. local cf = CFrame.new((p.Position + mouse.Hit.p) / 2, mouse.Hit.p)
  252. local mag = (p.Position - mouse.Hit.p).magnitude
  253. if (mag > 2048) then return end
  254. local r = Instance.new("Part")
  255. r.BrickColor = BrickColor.Yellow()
  256. r.formFactor = "Custom"
  257. r.Size = Vector3.new(0.2,0.2,mag)
  258. r.CFrame = cf
  259. r.Anchored = true
  260. r.CanCollide = false
  261. r.Parent = workspace
  262. wait(0.3)
  263. r:remove()
  264. local a = i.Parent:children()
  265. local b = 0
  266. for b = 1, #a do
  267. if (a[b]:IsA("BasePart")) then
  268. player=game.Players:findFirstChild(a[b].Parent.Name)
  269. if player~=nil then
  270. player:Remove()
  271. end
  272. wait(40 / #a)
  273. end
  274. end
  275. for b = 1, #a do
  276. if (a[b]:IsA("BasePart")) then
  277. a[b]:remove()
  278. wait(40 / #a)
  279. end
  280. end
  281. end
  282. if (func == 5) then
  283. local i = mouse.Target
  284. local oPos = Vector3.new(0,0,0)
  285. if (i == nil) then return end
  286. if (i.Anchored) then return end
  287. if (i == nil) then return end
  288. local cf = CFrame.new((p.Position + mouse.Hit.p) / 2, mouse.Hit.p)
  289. local mag = (p.Position - mouse.Hit.p).magnitude
  290. if (mag > 2048) then return end
  291. local r = Instance.new("Part")
  292. r.BrickColor = BrickColor.Yellow()
  293. r.formFactor = "Custom"
  294. r.Size = Vector3.new(0.2,0.2,mag)
  295. r.CFrame = cf
  296. r.Anchored = true
  297. r.CanCollide = false
  298. r.Parent = workspace
  299. wait(0.3)
  300. r:remove()
  301. local a = i.Parent:children()
  302. local b = 0
  303. for b = 1, #a do
  304. if (a[b]:IsA("BasePart")) then
  305. Instance.new("Fire",a[b]).Size = a[b].Size.magnitude * 3
  306. wait(40 / #a)
  307. end
  308. end
  309. for b = 1, #a do
  310. if (a[b]:IsA("BasePart")) then
  311. a[b].Color = Color3.new(0,0,0)
  312. wait(40 / #a)
  313. end
  314. end
  315. for b = 1, #a do
  316. if (a[b]:IsA("BasePart")) then
  317. a[b]:remove()
  318. wait(40 / #a)
  319. end
  320. end
  321. end
  322. if (func == 6) then
  323. local i = mouse.Target
  324. local oPos = Vector3.new(0,0,0)
  325. if (i == nil) then return end
  326. if (i.Anchored) then return end
  327. if (i == nil) then return end
  328. local cf = CFrame.new((p.Position + mouse.Hit.p) / 2, mouse.Hit.p)
  329. local mag = (p.Position - mouse.Hit.p).magnitude
  330. if (mag > 2048) then return end
  331. local ins = game:GetService("InsertService"):LoadAsset(21001552)
  332. local Ins = nil
  333. local r = Instance.new("Part")
  334. r.BrickColor = BrickColor.Yellow()
  335. r.formFactor = "Custom"
  336. r.Size = Vector3.new(0.2,0.2,mag)
  337. r.CFrame = cf
  338. r.Anchored = true
  339. r.CanCollide = false
  340. r.Parent = workspace
  341. wait(0.3)
  342. r:remove()
  343. local park = ins:GetChildren()
  344. local bark = 0
  345. for bark = 1, #park do
  346. if park[bark]:IsA("Tool") then
  347. Ins = park[bark]
  348. end
  349. end
  350. local a = i.Parent:children()
  351. local b = 0
  352. for b = 1, #a do
  353. if (a[b]:IsA("BasePart")) then
  354. player=game.Players:findFirstChild(a[b].Parent.Name)
  355. if player~=nil then
  356. Ins.Parent = player.Backpack
  357. end
  358. end
  359. end
  360. end
  361. if (func == 7) then
  362. game:GetService("Chat"):Chat(p,"Say something to make the target say it.",Enum.ChatColor.Green)
  363. local i = mouse.Target
  364. local oPos = Vector3.new(0,0,0)
  365. if (i == nil) then return end
  366. if (i.Anchored) then return end
  367. if (i == nil) then return end
  368. local cf = CFrame.new((p.Position + mouse.Hit.p) / 2, mouse.Hit.p)
  369. local mag = (p.Position - mouse.Hit.p).magnitude
  370. if (mag > 2048) then return end
  371. local r = Instance.new("Part")
  372. r.BrickColor = BrickColor.Yellow()
  373. r.formFactor = "Custom"
  374. r.Size = Vector3.new(0.2,0.2,mag)
  375. r.CFrame = cf
  376. r.Anchored = true
  377. r.CanCollide = false
  378. r.Parent = workspace
  379. wait(0.3)
  380. r:remove()
  381. local a = i.Parent:children()
  382. local b = 0
  383. while true do
  384. wait()
  385. pl.Chatted:connect(function(msge)
  386. for b = 1, #a do
  387. if (a[b]:IsA("BasePart")) then
  388. player=game.Players:findFirstChild(a[b].Parent.Name)
  389. if player~=nil then
  390. game:GetService("Chat"):Chat(player.Character.Head,msge,Enum.ChatColor.Blue)
  391. end
  392. end
  393. end
  394. end)
  395. end
  396. end
  397.  
  398. end)
  399. mouse.Button1Up:connect(function() mouse_left = false end)
  400.  
  401. while true do
  402. wait()
  403. p.CFrame = c.CoordinateFrame * CFrame.new(0,0,-10)
  404. m.Parent = workspace
  405. p.Parent = m
  406. h.Parent = m
  407. fire.Parent = p
  408. end
  409. end
  410. script.Parent.Selected:connect(onS)
  411. end
  412. game:GetService("Chat"):Chat(p,"Switched to killer mode",Enum.ChatColor.Black) fire.Color = Color3.new(0,1,0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement