-
Notifications
You must be signed in to change notification settings - Fork 698
/
Arsenal Script.lua
241 lines (205 loc) · 5.67 KB
/
Arsenal Script.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
--[[
tostring was here
feel free to make edits
credit me on release
don't skid shit from here and sell it otherwise i'll crack your script and release it
--]]
local plr = game:service("Players").LocalPlayer
local mouse = plr:GetMouse()
local rs = game:service("RunService")
local rest = game:service("ReplicatedStorage")
local mt = getrawmetatable(game)
local oldIndex = mt.__index
local oldNamecall = mt.__namecall
local oldNewindex = mt.__newindex
local hammerunit2stud = 0.0694
setreadonly(mt, false)
local function getclientscript()
return plr.PlayerGui.GUI.Client
end
local speedbackup = getsenv(getclientscript()).speedupdate
local function fakehitbox()
local hitbox = plr.Character.Hitbox
local clone = hitbox:Clone()
hitbox:Destroy()
clone.Parent = plr.Character
end
local function nohitbox()
plr.Character.Hitbox:Destroy()
end
local function destroygunanimations()
for _,v in next, workspace.Camera.Arms:GetChildren() do
if v:IsA("Animation") or v:IsA("AnimationController") then
v:Destroy()
end
end
end
local function destroyarms()
local left = workspace.Camera.Arms.CSSArms["Left Arm"]
local right = workspace.Camera.Arms.CSSArms["Right Arm"]
for _,v in next, left:GetChildren() do
v:Destroy()
end
for _,v in next, right:GetChildren() do
v:Destroy()
end
end
local function destroyflash()
workspace.Camera.Arms.Flash:Destroy()
end
local function panic(enable) --bool
for _,v in next, workspace.Camera.Arms:GetChildren() do
if v:IsA("BasePart") then
v.CanCollide = enable
end
end
end
local function weaponslide(enable) --bool
workspace.Camera.Arms["Left Arm"].CanCollide = enable
workspace.Camera.Arms["Right Arm"].CanCollide = enable
end
local function jointeam(teamname) --example: TGC(G = green), TBC(B = blue), etc for every team. "Random for FFA"
game:GetService("ReplicatedStorage").Events.JoinTeam:FireServer(teamname)
end
local function changecamera(ct) --CameraType
workspace.Camera.CameraType = ct
end
local function turnonserver(angle) -- normal angles are from -1 to 1. However they can be expanded, for example math.huge would make your head unhittable
game:GetService("ReplicatedStorage").Events.ControlTurn:FireServer(angle)
end
local function respawn()
game:GetService("ReplicatedStorage").Events.SpawnMe:FireServer()
end
local function die()
plr.Character.Head:Destroy()
end
local function removehead()
plr.Character.FakeHead:Destroy()
end
local function naked()
plr.Character.Shirt:Destroy()
plr.Character.Pants:Destroy()
end
local function removehats()
for _,v in next, plr.Character:GetChildren() do
if v:IsA("Accessory") then
v:Destroy()
end
end
end
local function removeleadershine()
plr.Character.UpperTorso.TeamLeader:Destroy()
end
local function destroywaist()
plr.Character.UpperTorso.Waist:Destroy()
end
local function goinvis()
destroywaist()
plr.Character.LowerTorso:Destroy()
plr.Character.RightUpperLeg:Destroy()
plr.Character.RightLowerLeg:Destroy()
plr.Character.RightFoot:Destroy()
plr.Character.LeftFoot:Destroy()
plr.Character.LeftUpperLeg:Destroy()
plr.Character.LeftLowerLeg:Destroy()
end
local function removemapkillers()
for _,v in next, workspace.Map.Killers:GetChildren() do
v:Destroy()
end
end
local function hookwalkspeed(ws) --int
getsenv(getclientscript()).speedupdate = function() plr.Character.Humanoid.WalkSpeed = ws end
end
local function nocamshake() -- aka norecoil
getsenv(getclientscript()).ShakeCam = function() end
end
local function maxclipammo(amount) --int
getsenv(getclientscript()).getammo = function() return amount end
end
local function editclip(amount) --int
for i = 1,4 do
if i == 1 then
getsenv(getclientscript()).ammocount = amount
else
local thing = "ammocount" .. i
getsenv(getclientscript())[thing] = amount
end
end
end
local function givebat()
plr.Name = "DevRolve"
getsenv(getclientscript()).isadmin = true
getsenv(getclientscript()).ischad = true
getsenv(getclientscript()).givetools()
end
local function givefastcuffs()
plr.Name = "mightybaseplate"
getsenv(getclientscript()).isadmin = true
getsenv(getclientscript()).ischad = true
getsenv(getclientscript()).givetools()
end
local function spooflevel(lvl) --int note: spoofs on client only, you're going to have to apply the gun on the server using the applygun remote
plr.Status.Level.Value = lvl
end
local function givecreagle()
getsenv(getclientscript()).isadmin = true
getsenv(getclientscript()).ischad = true
mt.__namecall = function(t, ...)
local args = {...}
local method = args[#args]
if method == "GetRankInGroup" then
return 255
end
if method == "IsInGroup" then
return true
end
if method == "FireServer" then
if t.Name == "ApplyGun" and args[1] == rest.Weapons["Golden Creagle"] then
return print("anti-anti-creagle")
end
end
return oldNamecall(t, ...)
end
getsenv(getclientscript()).givetools()
end
local function chat(message,teamonly,idk,dead) --string,bool,bool,bool
local unpackme =
{
message,
teamonly,
idk,
dead
}
game:GetService("ReplicatedStorage").Events.PlayerChatted:FireServer(unpack(unpackme))
end
local function nospread()
mt.__index = function(t, k)
if typeof(t) == "Instance" and k == "Value" then
if oldIndex(t, "Name") == "MaxSpread" then
return 0
end
if oldIndex(t, "Name") == "Spread" then
return 0
end
end
return oldIndex(t, k)
end
end
local function createcreaglerocket(position) --Vector3
local unpackme =
{
"Rocket",
1000000000,
position, --mouse.hit.p
workspace.Camera.CFrame * CFrame.new(1, -0.45, 0),
100,
100,
1,
13.88,
"Golden Creagle",
plr.Character.Hitbox.Position,
false
}
game:GetService("ReplicatedStorage").Events.CreateProjectile:FireServer(unpack(unpackme))
end