LatviaCPI

WS GUI for my babygirl

May 20th, 2019
894
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.53 KB | None | 0 0
  1. -- Made by LuaCritic | FE GUI for Wild Savannah.
  2.  
  3. repeat wait() until game.Players.LocalPlayer.Character
  4.  
  5. --
  6.  
  7. local Player = game:GetService("Players").LocalPlayer
  8. local Mouse = Player:GetMouse()
  9.  
  10. local KillEvent = workspace.RemoteServer.Death
  11.  
  12. local CKToggle = false
  13. local KVToggle = false
  14. local KAToggle = false
  15.  
  16. --
  17.  
  18. local function CreateInstance(Object,Properties)
  19. local NewInstance = Instance.new(Object)
  20. for i,v in pairs(Properties) do
  21.     NewInstance[i] = v
  22. end
  23.     return NewInstance
  24. end
  25.  
  26. --
  27.  
  28. local MainGui = CreateInstance("ScreenGui", {Name = "MainGui", ResetOnSpawn = false, Enabled = true, Parent = game:GetService("Players").LocalPlayer.PlayerGui})
  29. local MainFrame = CreateInstance("Frame", {Name = "MainFrame", Size = UDim2.new(0, 220, 0, 180), Position = UDim2.new(0.5, -125, 0.5, -125), BackgroundColor3 = Color3.fromRGB(209, 83, 100), BackgroundTransparency = 0, BorderSizePixel = 0, Parent = MainGui, Active = true, Draggable = true})
  30. local Notice = CreateInstance("TextLabel", {Name = "Notice", Text = "Rat's GUI", BorderSizePixel = 0, BackgroundColor3 = Color3.fromRGB(15, 15, 15), BackgroundTransparency = 1, Parent = MainFrame, TextSize = 24, Size = UDim2.new(1, 0, 0, 15), Position = UDim2.new(0, 0, 0, 15), Font = Enum.Font.SourceSansLight, TextColor3 = Color3.fromRGB(255, 255, 255)})
  31. local Notice2 = CreateInstance("TextLabel", {Name = "Notice2", Text = "Latvia#5649", BorderSizePixel = 0, BackgroundColor3 = Color3.fromRGB(15, 15, 15), BackgroundTransparency = 1, Parent = MainFrame, TextSize = 16, Size = UDim2.new(1, 0, 0, 15), Position = UDim2.new(0, 0, 0, 160), Font = Enum.Font.SourceSansLight, TextColor3 = Color3.fromRGB(255, 255, 255)})
  32. local ClickKill = CreateInstance("TextButton", {Name = "ClickKill", Text = "Godly Smite", BorderSizePixel = 0, BackgroundColor3 = Color3.fromRGB(255, 255, 255), BackgroundTransparency = 0.8, Parent = MainFrame, TextSize = 18, Size = UDim2.new(1, 0, 0, 20), Position = UDim2.new(0, 0, 0, 50), Font = Enum.Font.SourceSansLight, TextColor3 = Color3.fromRGB(255, 255, 255)})
  33. local Victim = CreateInstance("TextBox", {Name = "VictimName", Text = "    User Loop Kill", BorderSizePixel = 0, BackgroundColor3 = Color3.fromRGB(255, 255, 255), BackgroundTransparency = 0.8, Parent = MainFrame, TextSize = 18, Size = UDim2.new(0, 180, 0, 20), Position = UDim2.new(0, 0, 0, 85), Font = Enum.Font.SourceSansLight, TextColor3 = Color3.fromRGB(255, 255, 255)})
  34. local KillVictim = CreateInstance("TextButton", {Name = "KillVictim", Text = "❌", BorderSizePixel = 0, BackgroundColor3 = Color3.fromRGB(255, 255, 255), BackgroundTransparency = 0.8, Parent = MainFrame, TextSize = 14, Size = UDim2.new(0, 40, 0, 20), Position = UDim2.new(0, 180, 0, 85), Font = Enum.Font.SourceSansLight, TextColor3 = Color3.fromRGB(255, 255, 255)})
  35. local KillAll = CreateInstance("TextButton", {Name = "KillAll", Text = "Server Genocide", BorderSizePixel = 0, BackgroundColor3 = Color3.fromRGB(255, 255, 255), BackgroundTransparency = 0.8, Parent = MainFrame, TextSize = 18, Size = UDim2.new(1, 0, 0, 20), Position = UDim2.new(0, 0, 0, 120), Font = Enum.Font.SourceSansLight, TextColor3 = Color3.fromRGB(255, 255, 255)})
  36.  
  37.  
  38. --
  39.  
  40. Victim.FocusLost:Connect(function()
  41.     if Victim.Text == "" then
  42.         Victim.Text = "    User Loop Kill"
  43.     end
  44. end)
  45.  
  46. ClickKill.MouseButton1Down:Connect(function()
  47.     CKToggle = not CKToggle
  48.     if CKToggle == true then ClickKill.BackgroundColor3 = Color3.fromRGB(49, 255, 0) else ClickKill.BackgroundColor3 = Color3.fromRGB(255, 255, 255) end
  49.     Mouse.Button1Down:connect(function()
  50.         if CKToggle == true then
  51.             Mouse.TargetFilter = workspace.Water
  52.             print(Mouse.Target)
  53.             KillEvent:FireServer(game.Players[Mouse.Target.Parent.Name].Character)
  54.         else
  55.             print(nil)
  56.         end
  57.     end)
  58. end)
  59.  
  60. KillVictim.MouseButton1Down:Connect(function()
  61.     KVToggle = not KVToggle
  62.     if KVToggle == true then KillVictim.Text = "✅" else KillVictim.Text = "❌" end
  63.     while wait() do
  64.         if KVToggle == true then
  65.             local Char = game.Players[Victim.Text].Character
  66.             KillEvent:FireServer(Char)
  67.         else
  68.             print(nil)
  69.         end
  70.     end
  71. end)
  72.  
  73. KillAll.MouseButton1Click:Connect(function()
  74.     KAToggle = not KAToggle
  75.     if KAToggle == true then KillAll.BackgroundColor3 = Color3.fromRGB(49, 255, 0) else KillAll.BackgroundColor3 = Color3.fromRGB(255, 255, 255) end
  76.     while wait() do
  77.     if KAToggle == true then
  78.     for i,v in pairs(game.Players:GetChildren()) do
  79.         if v.Name ~= Player.Name and not v:IsFriendsWith(Player.UserId) then
  80.                 KillEvent:FireServer(v.Character)
  81.                     print("Ded: "..v.Name)
  82.         else
  83.             print(nil)
  84.                 end
  85.             end
  86.         end
  87.     end
  88. end)
Advertisement
Add Comment
Please, Sign In to add comment