Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- admins = {"ExplosiveCrayon","lockonstratos","player"} --People who can spawn the bubble
- Activator = "protect/" --Change this for the command ect... protect/mallinson2648 , protect/me
- --To edit the effect of the script change the script inside this script
- function Bubble(Player)
- if Player.Character:findFirstChild("Torso") == nil then return end
- if Player.Character.Torso:findFirstChild("Bubble") == nil then
- p = Instance.new("Part")
- p.Size = Vector3.new(7,7,7)
- p.CanCollide = false
- p.Transparency = .4
- p.Name = "Bubble"
- p.Shape = 0
- p.TopSurface = 0
- p.BottomSurface = 0
- p.CFrame = Player.Character.Torso.CFrame
- w = Instance.new("Weld")
- w.Part0 = p
- w.Part1 = Player.Character.Torso
- w.Parent = Player.Character.Torso
- f = Instance.new("BodyForce")
- f.force = Vector3.new(0,196.2*p:GetMass()/2,0)
- f.Parent = p
- p.Parent = Player.Character.Torso
- y = script.Effect:clone()
- y.Disabled = false
- y.Parent = p
- else
- Player.Character.Torso.Bubble:remove()
- end
- end
- function Parse(rep,message)
- if string.sub(message,1,string.len(Activator)) == Activator then
- for i,player in ipairs(game.Players:GetChildren()) do
- if string.sub(message,string.len(Activator)+1) == player.Name then Bubble(player) end
- end
- if string.sub(message,string.len(Activator)+1) == "me" then Bubble(rep) end
- end
- end
- for i,player in ipairs(game.Players:GetChildren()) do
- for j,admin in ipairs(admins) do
- if string.lower(player.Name) == string.lower(admin) then player.Chatted:connect(function(mes,rep) Parse(player,mes) end) end
- end
- end
- game.Players.ChildAdded:connect(function(player) if string.lower(player.Name) == string.lower(admin) then player.Chatted:connect(function(mes,rep) Parse(player,mes) end) end end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement