SHOW:
|
|
- or go back to the newest paste.
1 | - | me = game.Players.XDavodioX |
1 | + | me = game.Players.baldeagle22 |
2 | gui = Instance.new("ScreenGui") | |
3 | gui.Parent = me.PlayerGui | |
4 | gui.Name = "Kick" | |
5 | ||
6 | pos = 135 | |
7 | pos2 = 10 | |
8 | pos3 = 0 | |
9 | ||
10 | enabled = false | |
11 | ||
12 | button = Instance.new("TextButton") | |
13 | button.Parent = gui | |
14 | button.Size = UDim2.new(0, 100, 0, 30) | |
15 | button.Position = UDim2.new(0, 8, 0, pos) | |
16 | button.Text = "Kick" | |
17 | button.MouseButton1Click:connect(function() | |
18 | if enabled == false then | |
19 | enabled = true | |
20 | local a = game.Workspace:GetChildren() | |
21 | red = 0 | |
22 | green = 0.5 | |
23 | blue = 0 | |
24 | for i=1, #a do | |
25 | wait() | |
26 | pos2 = pos2 + 23 | |
27 | if pos2 >= 450 then | |
28 | pos3 = pos3 + 103 | |
29 | pos2 = 33 | |
30 | end | |
31 | if green <= 0.9 then | |
32 | green = green + 0.46 | |
33 | elseif green >= 0.9 then | |
34 | green = green - 0.46 | |
35 | end | |
36 | local bu = Instance.new("TextButton") | |
37 | bu.Parent = button | |
38 | bu.Size = UDim2.new(0, 100, 0, 20) | |
39 | bu.Position = UDim2.new(0, pos3, 0, pos2) | |
40 | bu.Text = a[i].Name | |
41 | bu.BackgroundTransparency = 1 | |
42 | bu.TextTransparency = 1 | |
43 | bu.BackgroundColor3 = Color3.new(red,green,blue) | |
44 | coroutine.resume(coroutine.create(function() | |
45 | for i=1, 3 do | |
46 | wait() | |
47 | bu.BackgroundTransparency = bu.BackgroundTransparency - 0.34 | |
48 | bu.TextTransparency = bu.BackgroundTransparency | |
49 | end | |
50 | end)) | |
51 | bu.MouseButton2Down:connect(function() | |
52 | local play = game.Workspace:findFirstChild(bu.Text) | |
53 | if play ~= nil then | |
54 | play:remove() | |
55 | bu:remove() | |
56 | end | |
57 | end) | |
58 | end | |
59 | elseif enabled == true then | |
60 | enabled = false | |
61 | pos2 = 10 | |
62 | pos3 = 0 | |
63 | local o = button:GetChildren() | |
64 | for i=1, #o do | |
65 | wait() | |
66 | o[i]:remove() | |
67 | end | |
68 | end | |
69 | end) | |
70 | ||
71 | ||
72 | ||
73 | --lego |