Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------------------------------------------Danteslabs's Orb----------------------------------------------------------------------------------
- local Owner = "ribCripql"
- local Player = game.Players:findFirstChild(Owner)
- local RISE = 5
- local FOLLOW = true
- local M = Instance.new("Model")
- local H = Instance.new("Humanoid")
- M.Parent = Player.Character
- H.Parent = M
- H.MaxHealth = 0
- H.Health = 0
- M.Name = "Orb"
- local p = Instance.new("Part")
- local BP = Instance.new("BodyPosition")
- local BG = Instance.new("BodyGyro")
- local SPL = Instance.new("SelectionPartLasso")
- BP.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- SPL.Parent = p
- p.BrickColor = BrickColor.new("White")
- p.Name = "Head"
- p.Parent = M
- p.Shape = "Ball"
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(3, 3, 3)
- p.TopSurface = 0
- p.BottomSurface = 0
- BP.Parent = p
- function matchPlayer(str)
- local result = nil
- local players = game.Players:GetPlayers()
- for i,v in pairs(game.Players:GetPlayers()) do
- if (string.find(string.lower(v.Name), str) == 1) then
- if (result ~= nil) then return nil end
- result = v
- end
- end
- return result
- end
- function onChatted(msg)
- if (string.sub(msg, 1, 4) == "Orb,") then
- if (string.find(msg, string.lower("reset"))) then
- for word in msg:gmatch("%w+") do
- local player = matchPlayer(word)
- if (player ~= nil) then
- SPL.Humanoid = player.Character:findFirstChild("Humanoid")
- SPL.Color = BrickColor.new("Bright red")
- SPL.Part = p
- player.Character:BreakJoints()
- wait(1)
- SPL.Part = nil
- end
- end
- end
- if not (string.find(msg, string.lower("loopkill"))) then
- if (string.find(msg, string.lower("kill"))) then
- for word in msg:gmatch("%w+") do
- local player = matchPlayer(word)
- if (player ~= nil) then
- SPL.Humanoid = player.Character:findFirstChild("Humanoid")
- SPL.Color = BrickColor.new("Bright red")
- SPL.Part = p
- player.Character:BreakJoints()
- wait(1)
- SPL.Part = nil
- end
- end
- end
- end
- if (string.find(msg, string.lower("find"))) then
- for word in msg:gmatch("%w+") do
- local player = matchPlayer(word)
- if (player ~= nil) then
- SPL.Humanoid = player.Character:findFirstChild("Humanoid")
- SPL.Color = BrickColor.new("White")
- SPL.Part = p
- wait(2)
- SPL.Part = nil
- end
- end
- end
- if (string.find(msg, string.lower("tele"))) then
- for word in msg:gmatch("%w+") do
- local player = matchPlayer(word)
- if (player ~= nil) then
- SPL.Humanoid = player.Character:findFirstChild("Humanoid")
- SPL.Color = BrickColor.new("Bright blue")
- SPL.Part = p
- Player.Character.Torso.CFrame = player.Character.Torso.CFrame
- wait(1)
- SPL.Part = nil
- end
- end
- end
- if (string.find(msg, string.lower("trans"))) then
- local number = msg:match("[%d%.]+") --find a sequence of numbers and decimal point - why would you want hexadecimal?
- if (number ~= nil) then
- p.Transparency = tonumber(number)
- end
- end
- if (string.find(msg, string.lower("size"))) then
- local number = msg:match("[%d%.]+") --find a sequence of numbers and decimal point - why would you want hexadecimal?
- if (number ~= nil) then
- p.Size = Vector3.new(tonumber(number),tonumber(number),tonumber(number))
- end
- end
- if (string.find(msg, string.lower("loopkill"))) then
- local number = msg:match("[%d%.]+") --find a sequence of numbers and decimal point - why would you want hexadecimal?
- if (number ~= nil) then
- for word in msg:gmatch("%w+") do
- local player = matchPlayer(word)
- if (player ~= nil) then
- K = 0
- repeat
- if (player.Character:findFirstChild("Humanoid").Health > 0) then
- wait()
- if (player.Character:findFirstChild("Torso") ~= nil) then
- wait()
- if (player.Character ~= nil) then
- wait()
- K = K + 1
- player.Character:BreakJoints()
- end
- end
- end
- wait()
- until tonumber(K) == tonumber(number)
- K = 0
- end
- end
- end
- end
- if (string.find(msg, string.lower("rise"))) then
- local number = msg:match("[%d%.]+") --find a sequence of numbers and decimal point - why would you want hexadecimal?
- if (number ~= nil) then
- RISE = tostring(number + 5)
- end
- end
- if not (string.find(msg, string.lower("unff"))) then
- if (string.find(msg, string.lower("ff"))) then
- for word in msg:gmatch("%w+") do
- local player = matchPlayer(word)
- if (player ~= nil) then
- SPL.Humanoid = player.Character:findFirstChild("Humanoid")
- SPL.Color = BrickColor.new("Bright green")
- SPL.Part = p
- ff = Instance.new("ForceField")
- ff.Parent = player.Character
- wait(1)
- SPL.Part = nil
- end
- end
- end
- end
- if (string.find(msg, string.lower("unff"))) then
- for word in msg:gmatch("%w+") do
- local player = matchPlayer(word)
- if (player ~= nil) then
- SPL.Humanoid = player.Character:findFirstChild("Humanoid")
- SPL.Color = BrickColor.new("Bright green")
- SPL.Part = p
- for i,v in pairs(player.Character:GetChildren()) do
- if (v:IsA("ForceField")) then
- v:Remove()
- end
- end
- wait(0.5)
- SPL.Part = p
- SPL.Color = BrickColor.new("Black")
- wait(1)
- SPL.Part = nil
- end
- end
- end
- if (string.find(msg, string.lower("kick"))) then
- for word in msg:gmatch("%w+") do
- local player = matchPlayer(word)
- if (player ~= nil) then
- SPL.Humanoid = player.Character:findFirstChild("Humanoid")
- SPL.Color = BrickColor.new("Bright blue")
- SPL.Part = p
- wait(1)
- player:Remove()
- SPL.Part = nil
- end
- end
- end
- if (string.find(msg, string.lower("stop"))) then
- if (string.find(msg, string.lower("spin"))) then
- BG.Parent = p
- end
- end
- if (string.find(msg, string.lower("start"))) then
- if (string.find(msg, string.lower("spin"))) then
- BG.Parent = nil
- end
- end
- if (string.find(msg, string.lower("invisible"))) then
- for word in msg:gmatch("%w+") do
- local player = matchPlayer(word)
- if (player ~= nil) then
- SPL.Humanoid = player.Character:findFirstChild("Humanoid")
- SPL.Color = BrickColor.new("Bright blue")
- SPL.Part = p
- for i,v in pairs(player.Character:GetChildren()) do
- if (v:IsA("Part")) then
- v.Transparency = 1
- end
- end
- wait(1)
- SPL.Part = nil
- end
- end
- end
- if not (string.find(msg, string.lower("invisible"))) then
- if (string.find(msg, string.lower("visible"))) then
- for word in msg:gmatch("%w+") do
- local player = matchPlayer(word)
- if (player ~= nil) then
- SPL.Humanoid = player.Character:findFirstChild("Humanoid")
- SPL.Color = BrickColor.new("Bright blue")
- SPL.Part = p
- for i,v in pairs(player.Character:GetChildren()) do
- if (v:IsA("Part")) then
- v.Transparency = 0
- end
- end
- wait(1)
- SPL.Part = nil
- end
- end
- end
- end
- if (string.find(msg, string.lower("stay"))) then
- local FOLLOW = false
- end
- if (string.find(msg, string.lower("follow"))) then
- local FOLLOW = true
- end
- end
- end
- Player.Chatted:connect(onChatted)
- local Levitated = 0
- local LevitateDir = -1
- while true do wait()
- pcall(function()
- -- PARENT THE ORB --
- M.Parent = Player.Character
- -- Levitation --
- Levitated = Levitated + LevitateDir / 20
- if Levitated >= 1 or Levitated <= -1 then
- LevitateDir = -LevitateDir
- end
- if (FOLLOW == true) then
- BP.position = (Player.Character.Torso.CFrame * CFrame.new(5, RISE, -2.5)).p + Vector3.new(0, Levitated, 0)
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement