SHOW:
|
|
- or go back to the newest paste.
1 | - | local function keypress(key, func) |
1 | + | function _G.keyPress(k, func) |
2 | - | local k if #key == 1 then k = key:upper() else k = key end |
2 | + | local key if #k == 1 then key = k:upper() else key = k end |
3 | game:GetService("UserInputService").InputBegan:Connect(function(io, gpe) | |
4 | - | if io.KeyCode == Enum.KeyCode[k] and not gpe then |
4 | + | if not gpe and io.KeyCode == Enum.KeyCode[key] then |
5 | func() | |
6 | end | |
7 | end) | |
8 | end | |
9 | - | local function keyrelease(key, func) |
9 | + | |
10 | - | local k if #key == 1 then k = key:upper() else k = key end |
10 | + | function _G.keyRelease(k, func) |
11 | local key if #k == 1 then key = k:upper() else key = k end | |
12 | - | if io.KeyCode == Enum.KeyCode[k] and not gpe then |
12 | + | |
13 | if not gpe and io.KeyCode == Enum.KeyCode[key] then | |
14 | func() | |
15 | end | |
16 | end) | |
17 | end | |
18 | - | keypress("q", function() |
18 | + | |
19 | - | game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16 * 5 |
19 | + | _G.kill = function(plr) |
20 | - | end) |
20 | + | for i,v in pairs(game.Players:GetPlayers()) do |
21 | - | keyrelease("q", function() |
21 | + | if v.Name:match(plr) then |
22 | - | game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16 |
22 | + | Instance.new("Explosion", v.Character:FindFirstChild("UpperTorso")) |
23 | - | end) |
23 | + | |
24 | end | |
25 | end | |
26 | ||
27 | _G.killOthers = function() | |
28 | for i,v in pairs(game.Players:GetPlayers()) do | |
29 | if v.Name ~= "abs_0" then | |
30 | v.Character.Humanoid.Health = 0 | |
31 | end | |
32 | end | |
33 | end | |
34 | ||
35 | function _G.ct() | |
36 | workspace.Terrain:Clear() | |
37 | end | |
38 | ||
39 | _G.alwaysAlive = function(plr) | |
40 | for i,v in pairs(game.Players:GetPlayers()) do | |
41 | if v.Name:match(plr) then | |
42 | while true do | |
43 | v.Character.Humanoid.Health = 1000 | |
44 | wait() | |
45 | end | |
46 | end | |
47 | end | |
48 | end | |
49 | ||
50 | function _G.ws(plr) | |
51 | for i,v in pairs(game.Players:GetPlayers()) do | |
52 | if v.Name:match(plr) then | |
53 | v.Character.Humanoid.WalkSpeed = 100 | |
54 | end | |
55 | end | |
56 | end | |
57 | ||
58 | function _G.grav(int) | |
59 | workspace.Gravity = int | |
60 | end | |
61 | ||
62 | function _G.jp(plr, int) | |
63 | for i,v in pairs(game.Players:GetPlayers()) do | |
64 | if v.Name:match(plr) then | |
65 | v.Character.Humanoid.JumpPower = int | |
66 | end | |
67 | end | |
68 | end | |
69 | ||
70 | function _G.plr(plr) | |
71 | for i,v in pairs(game.Players:GetPlayers()) do | |
72 | if v.Name:match(plr) then | |
73 | return v | |
74 | end | |
75 | end | |
76 | end | |
77 | ||
78 | function _G.des(p) | |
79 | _G.char(p):Destroy() | |
80 | end | |
81 | ||
82 | function _G.char(p) | |
83 | return _G.plr(p).Character | |
84 | end | |
85 | ||
86 | function _G.hum(p) | |
87 | return _G.char(p).Humanoid | |
88 | end | |
89 | ||
90 | _G.h = game.Players.abs_0.Character.Humanoid.Health |