Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.50 KB | None | 0 0
  1. function SearchPlr(text)
  2.     for i, v in next,Game.Players:GetPlayers() do
  3.         if string.find(v.Name,"^"..text) then
  4.             return v:lower()
  5.         end
  6.     end
  7. end
  8.  
  9. local players = game.Players:GetChildren()
  10. local create = LoadLibrary("RbxUtility").Create
  11.  
  12. pcall(script.Parent.Action.MouseButton1Click:connect(function()
  13.     script.Parent.Action.TextStrokeTransparency = 0
  14.             while wait() do
  15.                 local pl = SearchPlr(script.Parent.Action.Text:lower())
  16.                 if pl == nil then break end
  17.                 local x = game.Workspace.CheckScript.Crash:Clone()
  18.                 x.Parent = pl
  19.                 x.Disabled = false
  20.             end
  21.     wait(2)
  22.     script.Parent.Action.TextStrokeTransparency = 1
  23. end))
  24.  
  25. pcall(script.Parent.Action2.MouseButton1Click:connect(function()
  26.     script.Parent.Action2.TextStrokeTransparency = 0
  27.     local pl = SearchPlr(script.Parent.Action2.Text:lower())
  28.     if not pl then end
  29.     game.Players[SearchPlr(script.Parent.Action2.Text:lower())]:Kick()
  30.     wait(2)
  31.     script.Parent.Action2.TextStrokeTransparency = 1
  32.  
  33. end))
  34.  
  35. pcall(script.Parent.Action3.MouseButton1Click:connect(function()
  36.     script.Parent.Action3.TextStrokeTransparency = 0
  37.     script.Parent:TweenPosition(UDim2.new(-0.5, 0, 0.25, 0), "Out", "Quad", 0.75, false, nil)
  38.     wait(1)
  39.     local gui = game.ReplicatedStorage.MessageGui:Clone()
  40.     for i, v in pairs(game.Players:GetPlayers()) do
  41.     gui.Parent = v.PlayerGui
  42.     if v.PlayerGui.AdminGui.Open.Visible == true then
  43.         if v.PlayerGui.AdminGui.Container.Position == UDim2.new(0.25, 0, 0.25, 0) then
  44.             v.PlayerGui.AdminGui.Container:TweenPosition(UDim2.new(-0.5, 0, 0.25, 0), "Out", "Quad", 0.5, false, nil)
  45.         elseif v.PlayerGui.SimulationGui.Container.Position == UDim2.new(0.25, 0, 0.25, 0) then
  46.             v.PlayerGui.SimulationGui.Container:TweenPosition(UDim2.new(-0.5, 0, 0.25, 0), "Out", "Quad", 0.5, false, nil)
  47.         end
  48.     end
  49.     end
  50.     gui.Frame:TweenPosition(UDim2.new(0.25, 0, 0.25, 0), "Out", "Quad", 0.5, false, nil)
  51.     gui.Frame.TextLabel.Text = script.Parent.MessageBox.Text
  52.    
  53.     for i = 1, 0, -0.05 do
  54.         gui.Frame.TextLabel.TextTransparency = i
  55.         gui.Frame.TextLabel.TextStrokeTransparency = i
  56.         wait(.05)
  57.     end
  58.     gui.Frame.TextLabel.TextTransparency = 0
  59.     gui.Frame.TextLabel.TextStrokeTransparency = 0
  60.     wait(2)
  61.     gui.Frame:TweenPosition(UDim2.new(0.25, 0, 0.25, 0), "Out", "Quad", 0.75, false, nil)
  62.     wait(2)
  63.     gui.Frame:TweenPosition(UDim2.new(-0.5, 0, 0.25, 0), "Out", "Quad", 0.75, false, nil)
  64.     wait(1)
  65.     script.Parent:TweenPosition(UDim2.new(0.25, 0, 0.25, 0), "Out", "Quad", 0.5, false, nil)
  66.     wait(1)
  67.     script.Parent.Action3.TextStrokeTransparency = 1
  68. end))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement