Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- folder = workspace.MrBigHatsProperty
- event = folder.KILL
- players = game.Players:GetChildren()
- selected = 1
- gui = Instance.new("ScreenGui")
- gui.Parent = game.Players.LocalPlayer.PlayerGui
- --window
- window = Instance.new("Frame")
- window.Parent = gui
- window.Size = UDim2.new(0, 121, 0, 321)
- window.Position = UDim2.new(0.798, 0, 0, 0)
- --cool stuff
- des = Instance.new("TextButton")
- des.Parent = window
- des.BackgroundTransparency = 0
- des.Text = "KILL"
- des.TextColor = BrickColor.Red()
- des.Position = UDim2.new(-.24,0,0.1,1)
- des.Size = UDim2.new(0,20,0,20)
- des.Name = "KILL"
- skin = Instance.new("TextButton")
- skin.Parent = window
- skin.BackgroundTransparency = 0
- skin.Text = "skin"
- skin.TextColor = BrickColor.Red()
- skin.Position = UDim2.new(-.24,0,0.1,21)
- skin.Size = UDim2.new(0,20,0,20)
- skin.Name = "KILL"
- --different
- sf = Instance.new("ScrollingFrame")
- sf.Parent = window
- sf.Size = UDim2.new(1,0,1,0)
- pl = Instance.new("Folder")
- pl.Parent = sf
- uilist = Instance.new("UIListLayout")
- uilist.Parent = pl
- tbs = {}
- function fill()
- if not highlight then
- highlight = Instance.new("Highlight")
- highlight.Name = "selected"
- highlight.Parent = frame
- highlight.FillTransparency = 1
- highlight.OutlineColor = Color3.new(0.0980392, 0.788235, 1)
- end
- players = game.Players:GetChildren()
- pl:ClearAllChildren()
- uilist = Instance.new("UIListLayout")
- uilist.Parent = pl
- for i=1, #players do
- local tb = Instance.new("TextButton")
- tb.Parent = pl
- tb.Text = players[i].Name
- tb.Size = UDim2.new(0,99,0,19)
- if i == selected then tb.BackgroundColor3 = Color3.new(0.0980392, 0.788235, 1) end
- local ii = i * 0.02
- tb.Position = UDim2.new(-0.008,0,ii)
- tbs[i] = tb
- ov = Instance.new("ObjectValue")
- ov.Parent = tb
- ov.Value = players[i]
- ov.Name = "ov"
- end
- end
- fill()
- des.MouseButton1Down:Connect(function()
- local tmp = tbs[selected].ov.Value
- event:FireServer("kill",tmp.Name)
- end)
- skin.MouseButton1Down:Connect(function()
- local tmp = tbs[selected].ov.Value
- event:FireServer("skin",tmp.Name)
- end)
- while wait(0.5) do
- fill()
- for i=1,#tbs do
- tbs[i].Activated:Connect(function()
- selected = i
- local tmp = tbs[selected].ov.Value
- highlight.Parent = tmp.Character
- end)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement