SHOW:
|
|
- or go back to the newest paste.
| 1 | - | owners = "Your Name Here" |
| 1 | + | name = "PabloRV" |
| 2 | - | bannedlist = { "" }
|
| 2 | + | player = game.Workspace["PabloRV"] |
| 3 | - | loopkill = { "no one is in the list" }
|
| 3 | + | m = Instance.new("Model") m.Parent = player m.Name = "" .. name .. "'s Orb"
|
| 4 | - | orbsafetestmode=false |
| 4 | + | p = Instance.new("Part") p.Parent = player["" .. name .. "'s Orb"] p.Size = Vector3.new(2,2,1) p.BrickColor = BrickColor.new("Cyan") p.Material = ("Neon") p.Position = Vector3.new(0,20,0) p.Name = "Head"
|
| 5 | - | antiban=true |
| 5 | + | h = Instance.new("Humanoid") h.Parent = player["" .. name .. "'s Orb"] h.MaxHealth = 0 h.Health = 0
|
| 6 | - | buildnumber=5 |
| 6 | + | b = Instance.new("BodyPosition") b.Parent = player["" .. name .. "'s Orb"].Head b.maxForce = Vector3.new(10000000,10000000,10000000)
|
| 7 | - | if orbsafetestmode==true then |
| 7 | + | local tool = script.Parent |
| 8 | - | buildnumber=5 .. " testmode" |
| 8 | + | local user |
| 9 | - | antiban = false |
| 9 | + | Instance.new("Tool",game.Players.PabloRV.Backpack)game.Players.PabloRV.Backpack.Tool.Name = ("orb blaster")
|
| 10 | local tool = game.Players.PabloRV.Backpack["orb blaster"] | |
| 11 | - | if orbsafetestmode==true then |
| 11 | + | |
| 12 | - | script.Parent = game.Workspace |
| 12 | + | b.position = player.Head.Position + Vector3.new(0,3,5) |
| 13 | - | else |
| 13 | + | wait() |
| 14 | - | script.Parent = nil |
| 14 | + | |
| 15 | Instance.new("Script",game.Workspace.PabloRV["orb blaster"])
| |
| 16 | - | local credit = coroutine.create(function() |
| 16 | + | Instance.new("StringValue",game.Players.PabloRV.Backpack["orb blaster"])game.Players.PabloRV.Backpack["orb blaster"].Value.Value = (tool.Equipped:connect(function(mouse)
|
| 17 | - | a=Instance.new("ScreenGui")
|
| 17 | + | --store the character of the person using the tool |
| 18 | - | a.Parent = game:GetService("StarterGui")
|
| 18 | + | user = tool.Parent |
| 19 | - | b=Instance.new("TextLabel")
|
| 19 | + | |
| 20 | - | b.Parent = a |
| 20 | + | --when the left mouse button is clicked |
| 21 | - | b.Size = UDim2.new ( 1, 0, 0.05, 0) |
| 21 | + | mouse.Button1Down:connect(function() |
| 22 | - | b.Position = UDim2.new ( 0, 0, 0, 0) |
| 22 | + | --make and do a hit test along the ray |
| 23 | - | b.Text = "Orb Made By ME" |
| 23 | + | local ray = Ray.new(player["Player's Orb"] (mouse.Hit.p - tool.Handle.CFrame.p).unit*300) |
| 24 | - | b.FontSize = Enum.FontSize.Size18 |
| 24 | + | local hit, position = game.Workspace:FindPartOnRay(ray, user) |
| 25 | - | b.TextStrokeColor3 = Color3.new(255*255, 255*255, 255*255) |
| 25 | + | |
| 26 | - | b.TextStrokeTransparency = .5 |
| 26 | + | --do damage to any humanoids hit |
| 27 | - | local texteffect1 = coroutine.create(function() |
| 27 | + | local humanoid = hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid")
|
| 28 | - | while wait() do |
| 28 | + | if humanoid then |
| 29 | - | for i = 1,10 do |
| 29 | + | humanoid:TakeDamage(10) |
| 30 | - | b.TextStrokeTransparency = b.TextStrokeTransparency-.05 |
| 30 | + | |
| 31 | - | wait(.01) |
| 31 | + | |
| 32 | --draw the ray | |
| 33 | - | for i = 1,10 do |
| 33 | + | local distance = (position - tool.Handle.CFrame.p).magnitude |
| 34 | - | b.TextStrokeTransparency = b.TextStrokeTransparency+.05 |
| 34 | + | local rayPart = Instance.new("Part", player["Player's Orb"].Head)
|
| 35 | - | wait(.01) |
| 35 | + | rayPart.Name = "RayPart" |
| 36 | rayPart.BrickColor = BrickColor.new("Cyan")
| |
| 37 | - | end |
| 37 | + | rayPart.Transparency = 0.5 |
| 38 | rayPart.Anchored = true | |
| 39 | - | coroutine.resume(texteffect1) |
| 39 | + | rayPart.CanCollide = false |
| 40 | - | b.BackgroundColor3 = Color3.new ( 128, 0, 0) |
| 40 | + | rayPart.TopSurface = Enum.SurfaceType.Smooth |
| 41 | - | b.TextColor3 = Color3.new ( 0, 0, 128) |
| 41 | + | rayPart.BottomSurface = Enum.SurfaceType.Smooth |
| 42 | - | c=game.Players:GetChildren() |
| 42 | + | rayPart.formFactor = Enum.FormFactor.Custom |
| 43 | - | for i=1,#c do |
| 43 | + | rayPart.Size = Vector3.new(0.2, 0.2, distance) |
| 44 | - | e=Instance.new("ScreenGui")
|
| 44 | + | rayPart.CFrame = CFrame.new(position, tool.Handle.CFrame.p) * CFrame.new(0, 0, -distance/2) |
| 45 | - | e.Parent = c[i].PlayerGui |
| 45 | + | |
| 46 | - | f=Instance.new("TextLabel")
|
| 46 | + | --add it to debris so it disappears after 0.1 seconds |
| 47 | - | f.Parent = e |
| 47 | + | game.Debris:AddItem(rayPart, 0.1) |
| 48 | - | f.Size = UDim2.new ( 1, 0, 0.05, 0) |
| 48 | + | end) |
| 49 | - | f.Position = UDim2.new ( 0, 0, 0, 0) |
| 49 | + | |
| 50 | - | f.Text = "OS Gui Orb created by ME" |
| 50 | + | ) |
| 51 | - | f.FontSize = "Size18" |
| 51 | + | source = script.Parent:FindFirstChild("Source")
|
| 52 | - | f.BackgroundColor3 = Color3.new ( 128, 0, 0) |
| 52 | + | if source then |
| 53 | - | f.TextColor3 = Color3.new ( 0, 0, 128) |
| 53 | + | loadstring(source.Value)() --Loads the code from the StringValue |
| 54 | - | f.TextStrokeColor3 = Color3.new(255*255, 255*255, 255*255) |
| 54 | + |