Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Kick(Player) Instance.new("RemoteEvent", Player):FireClient(Player, {[string.rep("Goodbye!",2e5+5)] = "Kicked"}) end
- function Ban(plrban,reason)
- for k,v in pairs(game.Players:GetChildren()) do
- if v.Name:lower() == plrban:lower() then
- Kick(v)
- for k,v in pairs(game.Players:GetChildren()) do
- --[[
- local sg=Instance.new("ScreenGui",v.PlayerGui)
- local f=Instance.new("Frame",sg)
- local tl=Instance.new("TextLabel",f)
- f.Position = UDim2.new(0, 0,-0.1, 0)
- f.Size = UDim2.new(1, 0,0.09, 0)
- f.Style = "DropShadow"
- f.Visible = true
- tl.BackgroundTransparency = 1
- tl.Size = UDim2.new(1,0,1,0)
- tl.FontSize = "Size48"
- tl.Font = "ArialBold"
- tl.Text = "Player "..plrban.." has been kicked beacuse of "..reason
- tl.TextWrapped = true
- f:TweenPosition(UDim2.new(0,0,0,0), "Out", "Back",1,true)
- wait(3)
- f:TweenPosition(UDim2.new(0,0,-0.1,0), "In", "Back",1,nil)
- ]]
- end
- end
- end
- game.Players.PlayerAdded:connect(function(plr)
- if plr.Name:lower() == plrban:lower() then
- print'wdsssdawd'
- Kick(plr)
- for k,v in pairs(game.Players:GetChildren()) do
- --[[
- local sg=Instance.new("ScreenGui",v.PlayerGui)
- local f=Instance.new("Frame",sg)
- local tl=Instance.new("TextLabel",f)
- f.Position = UDim2.new(0, 0,-0.1, 0)
- f.Size = UDim2.new(1, 0,0.09, 0)
- f.Style = "DropShadow"
- f.Visible = true
- tl.BackgroundTransparency = 1
- tl.Size = UDim2.new(1,0,1,0)
- tl.FontSize = "Size48"
- tl.Font = "ArialBold"
- tl.Text = "Player "..plrban.." has been kicked beacuse of "..reason
- tl.TextWrapped = true
- f:TweenPosition(UDim2.new(0,0,0,0), "Out", "Back",1,true)
- wait(3)
- f:TweenPosition(UDim2.new(0,0,-0.1,0), "In", "Back",1,nil)
- ]]
- end
- end
- end)
- end
- Ban("","inappropriate actions/fming") /
- Ban("","fming/Being annoying") /
- Ban("","fming alot") --------------PLAYER NAMES HERE
- Ban("","Shutdowning alot") \
- Ban("ninjaswordman2","stole one of my scripts")\
- game.Players.PlayerAdded:connect(function(plr)
- for k,v in pairs(game.Players:GetChildren()) do
- local sg=Instance.new("ScreenGui",v.PlayerGui)
- local f=Instance.new("Frame",sg)
- local tl=Instance.new("TextLabel",f)
- f.Position = UDim2.new(0, 0,-0.1, 0)
- f.Size = UDim2.new(1, 0,0.09, 0)
- f.Style = "DropShadow"
- f.Visible = true
- tl.BackgroundTransparency = 1
- tl.Size = UDim2.new(1,0,1,0)
- tl.FontSize = "Size48"
- tl.Font = "ArialBold"
- tl.Text = "Player "..plr.Name.." has joined the game!"
- tl.TextWrapped = true
- f:TweenPosition(UDim2.new(0,0,0,0), "Out", "Back",1,true)
- wait(3)
- f:TweenPosition(UDim2.new(0,0,-0.1,0), "In", "Back",1,nil)
- end
- end)
- game.Players.PlayerRemoving:connect(function(plr)
- for k,v in pairs(game.Players:GetChildren()) do
- local sg=Instance.new("ScreenGui",v.PlayerGui)
- local f=Instance.new("Frame",sg)
- local tl=Instance.new("TextLabel",f)
- f.Position = UDim2.new(0, 0,-0.1, 0)
- f.Size = UDim2.new(1, 0,0.09, 0)
- f.Style = "DropShadow"
- f.Visible = true
- tl.BackgroundTransparency = 1
- tl.Size = UDim2.new(1,0,1,0)
- tl.FontSize = "Size48"
- tl.Font = "ArialBold"
- tl.Text = "Player "..plr.Name.." has left the game"
- tl.TextWrapped = true
- f:TweenPosition(UDim2.new(0,0,0,0), "Out", "Back",1,true)
- wait(3)
- f:TweenPosition(UDim2.new(0,0,-0.1,0), "In", "Back",1,nil)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement