Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function gui(txt)
- mainPart = Orb
- local bg = Instance.new("BillboardGui", mainPart)
- bg.Adornee = mainPart
- bg.Name = "CHATGUIBG"
- bg.Size = UDim2.new(4, 0, 2.5, 0)
- bg.StudsOffset = Vector3.new(-4, 2, 0)
- local bg2 = Instance.new("BillboardGui", mainPart)
- bg2.Adornee = mainPart
- bg2.Name = "CHATGUIBG2"
- bg2.Size = UDim2.new(4, 0, 2.5, 0)
- bg2.StudsOffset = Vector3.new(-4, 4.5, 0)
- local text = Instance.new("TextLabel", bg)
- text.Size = UDim2.new(3, 0, 0.5, 0)
- text.FontSize = "Size12"
- text.TextScaled = true
- text.TextTransparency = 0
- text.BackgroundTransparency = 1
- text.TextTransparency = 0
- text.TextStrokeTransparency = 0
- text.Font = "Legacy"
- text.TextColor3 = BrickColor.new(color).Color
- for i = 1, string.len(txt) do
- text.Text = txt:sub(1, i)
- end
- wait(3)
- bg:Destroy()
- bg2:Destroy()
- text:Destroy()
- end
- function FindPlayer(Message)
- for index,plr in pairs(game:GetService("Players"):GetPlayers()) do
- if string.sub(string.lower(plr.Name), 1, string.len(Message)) == Message then
- return plr
- end
- end
- end
- ref = 0.5
- god = game.Players.LocalPlayer
- coll = ""
- kill = true
- tx = 0
- ty = 0.5
- loaded = false
- local radius = 4
- color = "Lime green"
- function onChatted(msg)
- if msg:sub(1,9) == "trailx.." then
- tx = msg:sub(10)
- gui("changed x to "..tx)
- end
- if msg:sub(1,9) == "traily" then
- ty = msg:sub(10)
- gui("changed y to "..ty)
- end
- if msg:sub(1,5) == "rad.." then
- radius = msg:sub(6)
- gui("radiusi canghed to: " ..radius)
- end
- if msg:sub(1,4) == "redt" then
- color = "Bright red"
- wait(0.1)
- gui("the cloro is "..color)
- end
- if msg:sub(1,6) == "blackt" then
- color = "Really black"
- wait(0.1)
- gui("the cloro is "..color)
- end
- if msg:sub(1,5) == "bluet"then
- color = "Bright blue"
- wait(0.1)
- gui("the cloro is "..color)
- end
- if msg:sub(1,7) == "yellowt" then
- color = "New Yeller"
- wait(0.1)
- gui("the cloro is "..color)
- end
- if msg:sub(1,6) == "greent" then
- color = "Lime green"
- wait(0.1)
- gui("the cloro is "..color)
- end
- if msg:sub(1,5) == "pinkt" then
- color = "Pink"
- wait(0.1)
- gui("the cloro is "..color)
- end
- if msg:sub(1,5) == "goldt" then
- color = "Gold"
- ref = 0
- gui("worst gold u ever seen")
- end
- if msg:sub(1,7) == "purplet" then
- color = "Royal purple"
- wait(0.1)
- gui("Color : "..color)
- end
- if msg:sub(1,4) == "kill" then
- kill = true
- gui("kill is on man")
- end
- if msg:sub(1,5) == "nkill" then
- kill = false
- gui("killz deacvtidate")
- end
- if msg == "loadOrb" and loaded == false then
- loaded = true
- owner = game.Players.LocalPlayer
- local Orbs = {}
- Orb = Instance.new("Part",workspace)
- Orb.BottomSurface = "Smooth"
- Orb.TopSurface = "Smooth"
- --Orb.Shape = "Ball"
- Orb.Name = "Orb"
- Orb.FormFactor = "Custom"
- Orb.Size = Vector3.new(1,1,0)
- Orb.BrickColor = BrickColor.Black()
- Orb.Transparency = 1
- Orb.Reflectance = ref
- Orb.Locked = true
- Orb.Anchored = true
- table.insert(Orbs,Orb)
- Orbsb = Instance.new('SelectionSphere',Orb)
- Orbsb.Adornee = Orb
- Orbsb.Color3 = Color3.new(255,255,255)
- Orbsb.Transparency = 0.5
- Orbsbox = Instance.new("SelectionBox", Orb)
- Orbsbox.Adornee = Orb
- Orbsbox.Color = BrickColor.new("Really black")
- Orbsbox.Transparency = 0.5
- local l = Instance.new("PointLight", Orb)
- l.Brightness = 5
- l.Range = 8
- l.Color = Color3.new(0,0,0)
- l.Enabled = true
- Orb.Parent = game.Players.LocalPlayer.Character
- local point
- local loop = coroutine.create(function()
- while true do
- for i=1,720,4 do
- if owner.Character and not point then
- point = owner.Character:FindFirstChild("Head")
- end
- if point.Parent.Name == owner.Character.Name then
- point = owner.Character:FindFirstChild("Head")
- end
- if Orb then
- 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
- wait()
- end
- end
- repeat Orb.Parent = owner.Character.Torso wait() until not owner.Character.Torso
- if not owner.Character.Torso then
- for _,v in pairs(Orb:GetChildren()) do
- if v then
- v:Destroy()
- v.Parent:Destroy()
- end
- end
- end
- end)
- local function trailPar()
- local pos = Orb.CFrame.p
- --pos = game.Players.n00bahkiin2.Character.Torso.CFrame.p
- wait()
- local pos2 = Orb.CFrame.p
- --pos2 = game.Players.n00bahkiin2.Character.Torso.CFrame.p
- local dist = (pos - pos2).magnitude
- local trail = Instance.new("Part")
- trail.Anchored = true
- trail.Locked = true
- trail.CanCollide = false
- trail.BottomSurface = "Smooth"
- trail.TopSurface = "Smooth"
- trail.Shape = "Block"
- trail.FormFactor = "Custom"
- trail.Size = Vector3.new(tx,ty,dist)
- trail.CFrame = CFrame.new(pos,pos2) *CFrame.new(0,0,-dist/2)
- trail.Parent = Orb
- game:GetService("Debris"):AddItem(trail,2)
- return trail
- end
- Orb.Touched:connect(function(hit)
- plr = hit.Parent:GetChildren()
- humanoooid = hit.Parent:FindFirstChild("Humanoid")
- 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
- for i, v in pairs(plr) do
- if v:IsA("Part") then
- local sbox = Instance.new("SelectionBox", v)
- sbox.Adornee = v
- sbox.Color = BrickColor.new(color)
- sbox.Transparency = 0.7
- v.Transparency = 1
- game:GetService("Debris"):AddItem(v, 5)
- end
- if v:IsA("Shirt") then
- v:remove()
- end
- end
- end
- end)
- trail = coroutine.create(function()
- while true do
- for i=1,20,1 do
- trail = trailPar()
- --trail.Size = trail.Size + Vector3.new(i/30,i/30,i/30)
- trail.Transparency = i/22
- trail.BrickColor = BrickColor.new(color)
- end
- for i=20,1,-1 do
- trail = trailPar()
- --trail.Size = trail.Size + Vector3.new(i/30,i/30,i/30)
- trail.Transparency = i/22
- trail.BrickColor = BrickColor.new("Really black")
- end
- for i=1,10,1 do
- trail = trailPar()
- --trail.Size = trail.Size + Vector3.new(i/30,i/30,i/30)
- trail.Transparency = i/11
- trail.BrickColor = BrickColor.new(color)
- end
- for i=10,1,-1 do
- trail = trailPar()
- --trail.Size = trail.Size + Vector3.new(i/30,i/30,i/30)
- trail.Transparency = i/11
- trail.BrickColor = BrickColor.new("Really black")
- end
- end
- end)
- coroutine.resume(loop)
- coroutine.resume(trail)
- end
- end
- god.Chatted:connect(onChatted)
- function onChatted2(msg)
- if msg == "clearOrb" and loaded == true then
- local sizee = 1.2
- loaded = false
- Orb:Destroy()
- Orbsb:Destroy()
- Orbsbox:Destroy()
- trail:Destroy()
- end
- end
- god.Chatted:connect(onChatted2)
- game.Players.ChildAdded:connect(function(plr2)
- if plr2:IsA("Player") then
- gui(plr2.Name.." joined the server")
- end
- end)
- game.Players.ChildRemoved:connect(function(plr)
- if plr:IsA("Player") then
- gui(plr.Name.." left the server")
- end
- end)
- --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()
- --[[
- function gui(txt)
- mainPart = Orb
- local bg = Instance.new("BillboardGui", mainPart)
- bg.Adornee = mainPart
- bg.Name = "CHATGUIBG"
- bg.Size = UDim2.new(4, 0, 2.5, 0)
- bg.StudsOffset = Vector3.new(-4, 2, 0)
- local bg2 = Instance.new("BillboardGui", mainPart)
- bg2.Adornee = mainPart
- bg2.Name = "CHATGUIBG2"
- bg2.Size = UDim2.new(4, 0, 2.5, 0)
- bg2.StudsOffset = Vector3.new(-4, 4.5, 0)
- local text = Instance.new("TextLabel", bg)
- text.Size = UDim2.new(3, 0, 0.5, 0)
- text.FontSize = "Size12"
- text.TextScaled = true
- text.TextTransparency = 0
- text.BackgroundTransparency = 1
- text.TextTransparency = 0
- text.TextStrokeTransparency = 0
- text.Font = "Legacy"
- text.TextColor3 = BrickColor.new(color).Color
- text.Text = txt
- wait(3)
- bg:Destroy()
- bg2:Destroy()
- text:Destroy()
- end
- function FindPlayer(Message)
- for index,plr in pairs(game:GetService("Players"):GetPlayers()) do
- if string.sub(string.lower(plr.Name), 1, string.len(Message)) == Message then
- return plr
- end
- end
- end
- god = game.Players.LocalPlayer
- coll = ""
- kill = true
- loaded = false
- local radius = 4
- color = "Lime green"
- function onChatted(msg)
- if msg:sub(1,6) == "give.." then
- end
- if msg:sub(1,5) == "rad.." then
- radius = msg:sub(6)
- end
- if msg:sub(1,4) == "redt" then
- color = "Bright red"
- wait(0.1)
- gui("Color : "..color)
- end
- if msg:sub(1,6) == "blackt" then
- color = "Really black"
- wait(0.1)
- gui("Color : "..color)
- end
- if msg:sub(1,5) == "bluet"then
- color = "Bright blue"
- wait(0.1)
- gui("Color : "..color)
- end
- if msg:sub(1,7) == "yellowt" then
- color = "New Yeller"
- wait(0.1)
- gui("Color : "..color)
- end
- if msg:sub(1,6) == "greent" then
- color = "Lime green"
- wait(0.1)
- gui("Color : "..color)
- end
- if msg:sub(1,5) == "pinkt" then
- color = "Pink"
- wait(0.1)
- gui("Color : "..color)
- end
- if msg:sub(1,7) == "purplet" then
- color = "Royal purple"
- wait(0.1)
- gui("Color : "..color)
- end
- if msg:sub(1,4) == "kill" then
- kill = true
- end
- if msg:sub(1,5) == "nkill" then
- kill = false
- end
- if msg == "loadOrb" and loaded == false then
- loaded = true
- owner = game.Players.LocalPlayer
- local Orbs = {}
- Orb = Instance.new("Part",workspace)
- Orb.BottomSurface = "Smooth"
- Orb.TopSurface = "Smooth"
- --Orb.Shape = "Ball"
- Orb.Name = "Orb"
- Orb.FormFactor = "Custom"
- Orb.Size = Vector3.new(1,1,0)
- Orb.BrickColor = BrickColor.Black()
- Orb.Transparency = 1
- Orb.Locked = true
- Orb.Anchored = true
- table.insert(Orbs,Orb)
- Orbsb = Instance.new('SelectionSphere',Orb)
- Orbsb.Adornee = Orb
- Orbsb.Color3 = Color3.new(255,255,255)
- Orbsb.Transparency = 0.5
- Orbsbox = Instance.new("SelectionBox", Orb)
- Orbsbox.Adornee = Orb
- Orbsbox.Color = BrickColor.new("Really black")
- Orbsbox.Transparency = 0.5
- local l = Instance.new("PointLight", Orb)
- l.Brightness = 5
- l.Range = 8
- l.Color = BrickColor.new(color).Color
- l.Enabled = true
- Orb.Parent = game.Players.LocalPlayer.Character
- local point
- local loop = coroutine.create(function()
- while true do
- for i=1,720,4 do
- if owner.Character and not point then
- point = owner.Character:FindFirstChild("Head")
- end
- if point.Parent.Name == owner.Character.Name then
- point = owner.Character:FindFirstChild("Head")
- end
- if Orb then
- Orb.CFrame = CFrame.new(point.CFrame.p) *CFrame.fromEulerAnglesXYZ(math.rad(20),math.rad(i),math.rad(i)) *CFrame.new(0,0,radius)end
- wait()
- end
- end
- repeat Orb.Parent = owner.Character.Torso wait() until not owner.Character.Torso
- if not owner.Character.Torso then
- for _,v in pairs(Orb:GetChildren()) do
- if v then
- v:Destroy()
- v.Parent:Destroy()
- end
- end
- end
- end)
- local function trailPar()
- local pos = Orb.CFrame.p
- -- local pos = game.Players.iiDeadzone.Character.Torso.CFrame.
- wait()
- local pos2 = Orb.CFrame.p
- --local pos2 = game.Players.iiDeadzone.Character.Torso.CFrame.
- local dist = (pos - pos2).magnitude
- local trail = Instance.new("Part")
- trail.Anchored = true
- trail.Locked = true
- trail.CanCollide = false
- trail.BottomSurface = "Smooth"
- trail.TopSurface = "Smooth"
- trail.Shape = "Block"
- trail.FormFactor = "Custom"
- trail.Size = Vector3.new(0,0.5,dist)
- trail.CFrame = CFrame.new(pos,pos2) *CFrame.new(0,0,-dist/2)
- trail.Parent = Orb
- game:GetService("Debris"):AddItem(trail,2)
- return trail
- end
- Orb.Touched:connect(function(hit)
- plr = hit.Parent:GetChildren()
- humanoooid = hit.Parent:FindFirstChild("Humanoid")
- 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
- for i, v in pairs(plr) do
- if v:IsA("Part") then
- local sbox = Instance.new("SelectionBox", v)
- sbox.Adornee = v
- sbox.Color = BrickColor.new(color)
- sbox.Transparency = 0.7
- v.Transparency = 1
- game:GetService("Debris"):AddItem(v, 5)
- end
- if v:IsA("Shirt") then
- v:remove()
- end
- end
- end
- end)
- trail = coroutine.create(function()
- while true do
- for i=1,20,1 do
- trail = trailPar()
- --trail.Size = trail.Size + Vector3.new(i/30,i/30,i/30)
- trail.Transparency = i/22
- trail.BrickColor = BrickColor.new(color)
- end
- for i=20,1,-1 do
- trail = trailPar()
- --trail.Size = trail.Size + Vector3.new(i/30,i/30,i/30)
- trail.Transparency = i/22
- trail.BrickColor = BrickColor.new("Really black")
- end
- for i=1,10,1 do
- trail = trailPar()
- --trail.Size = trail.Size + Vector3.new(i/30,i/30,i/30)
- trail.Transparency = i/11
- trail.BrickColor = BrickColor.new(color)
- end
- for i=10,1,-1 do
- trail = trailPar()
- --trail.Size = trail.Size + Vector3.new(i/30,i/30,i/30)
- trail.Transparency = i/11
- trail.BrickColor = BrickColor.new("Really black")
- end
- end
- end)
- coroutine.resume(loop)
- coroutine.resume(trail)
- end
- end
- god.Chatted:connect(onChatted)
- function onChatted2(msg)
- if msg == "clearOrb" and loaded == true then
- local sizee = 1.2
- loaded = false
- Orb:Destroy()
- Orbsb:Destroy()
- Orbsbox:Destroy()
- trail:Destroy()
- end
- end
- god.Chatted:connect(onChatted2)
- game.Players.ChildAdded:connect(function(plr2)
- if plr2:IsA("Player") then
- gui(plr2.Name.." joined the server")
- end
- end)
- game.Players.ChildRemoved:connect(function(plr)
- if plr:IsA("Player") then
- gui(plr.Name.." left the server")
- end
- end)
- --]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement