· 5 years ago · Mar 07, 2020, 06:24 PM
1-- This script has been converted to FE by igothacked0616(Metalfaith)
2
3if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
4local Player,Mouse,mouse,UserInputService,ContextActionService = owner
5do
6 print("FE Compatibility code by Mokiros | Translated to FE by igothacked0616")
7 script.Parent = Player.Character
8
9 --RemoteEvent for communicating
10 local Event = Instance.new("RemoteEvent")
11 Event.Name = "UserInput_Event"
12
13 --Fake event to make stuff like Mouse.KeyDown work
14 local function fakeEvent()
15 local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
16 t.connect = t.Connect
17 return t
18 end
19
20 --Creating fake input objects with fake variables
21 local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
22 local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
23 local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
24 CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
25 end}
26 --Merged 2 functions into one by checking amount of arguments
27 CAS.UnbindAction = CAS.BindAction
28
29 --This function will trigger the events that have been :Connect()'ed
30 local function te(self,ev,...)
31 local t = m[ev]
32 if t and t._fakeEvent and t.Function then
33 t.Function(...)
34 end
35 end
36 m.TrigEvent = te
37 UIS.TrigEvent = te
38
39 Event.OnServerEvent:Connect(function(plr,io)
40 if plr~=Player then return end
41 if io.isMouse then
42 m.Target = io.Target
43 m.Hit = io.Hit
44 else
45 local b = io.UserInputState == Enum.UserInputState.Begin
46 if io.UserInputType == Enum.UserInputType.MouseButton1 then
47 return m:TrigEvent(b and "Button1Down" or "Button1Up")
48 end
49 for _,t in pairs(CAS.Actions) do
50 for _,k in pairs(t.Keys) do
51 if k==io.KeyCode then
52 t.Function(t.Name,io.UserInputState,io)
53 end
54 end
55 end
56 m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
57 UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
58 end
59 end)
60 Event.Parent = NLS([==[
61 local Player = game:GetService("Players").LocalPlayer
62 local Event = script:WaitForChild("UserInput_Event")
63
64 local UIS = game:GetService("UserInputService")
65 local input = function(io,a)
66 if a then return end
67 --Since InputObject is a client-side instance, we create and pass table instead
68 Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
69 end
70 UIS.InputBegan:Connect(input)
71 UIS.InputEnded:Connect(input)
72
73 local Mouse = Player:GetMouse()
74 local h,t
75 --Give the server mouse data 30 times every second, but only if the values changed
76 --If player is not moving their mouse, client won't fire events
77 while wait(1/30) do
78 if h~=Mouse.Hit or t~=Mouse.Target then
79 h,t=Mouse.Hit,Mouse.Target
80 Event:FireServer({isMouse=true,Target=t,Hit=h})
81 end
82 end]==],Player.Character)
83 Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
84end
85 -- BurnLegion strikes again!
86-- wongxd, this is why you DON'T goto Voidacity's
87-- SLPM has been absent, so I've taken it upon myself to make something
88
89--------------------------------------------------------
90
91 pls = game:GetService'Players'
92 rs = game:GetService'RunService'
93 uinps = game:GetService'UserInputService'
94 lp = owner
95 c = lp.Character
96 human = c.Humanoid
97 human.MaxHealth = 50
98 wait()
99 human.Health = 50
100 c.Health:Destroy()
101
102--------------------------------------------------------
103
104 Debounces = {
105 AnimationCycles = 0;
106 FPS = 0;
107 scalingDamage = false;
108 damageLevel = 0;
109 attackNumber = 0;
110 isAttacking = false;
111 isMoving = false;
112 isSprinting = false;
113 isBoosting = false;
114 isPassive = false;
115 isTyping = false;
116 }
117
118--------------------------------------------------------
119
120 numLerp = function(start, goal, alpha)
121 return(((goal - start) * alpha) + start)
122 end
123
124 CFrameZero = function()
125 return CFrame.new(Vector3.new())
126 end
127
128 rad = function(value)
129 return math.rad(value)
130 end
131
132 CFAngles = function(Vector)
133 return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
134 end
135
136--------------------------------------------------------
137
138 AnimStat = {
139 lerpSpeed = .2;
140 lerpSpeed2 = .35;
141 lerpTween = 0;
142 }
143
144 Joints = {
145 c.HumanoidRootPart.RootJoint;
146 c.Torso.Neck;
147 c.Torso['Left Shoulder'];
148 c.Torso['Right Shoulder'];
149 c.Torso['Left Hip'];
150 c.Torso['Right Hip'];
151 }
152
153 JointTargets = {
154 CFrameZero();
155 CFrameZero();
156 CFrameZero();
157 CFrameZero();
158 CFrameZero();
159 CFrameZero();
160 }
161
162--------------------------------------------------------
163
164 BodyColors = {
165 HeadColor = BrickColor.new("Institutional white");
166 LeftArmColor = BrickColor.new("Institutional white");
167 RightArmColor = BrickColor.new("Institutional white");
168 LeftLegColor = BrickColor.new("Institutional white");
169 RightLegColor = BrickColor.new("Institutional white");
170 TorsoColor = BrickColor.new("Mid gray");
171 }
172
173 Customs = {
174 Face = "http://www.roblox.com/asset/?id=8560915";
175 Shirt = "http://www.roblox.com/asset/?id=334781688";
176 Pants = "http://www.roblox.com/asset/?id=335237283";
177 }
178
179--------------------------------------------------------
180
181 prepareCharacter = function()
182 local transPoints = {
183 NumberSequenceKeypoint.new(0,.819,.0375),
184 NumberSequenceKeypoint.new(.207,.594,.0187),
185 NumberSequenceKeypoint.new(.4,.55,.031),
186 NumberSequenceKeypoint.new(.57,.619,.05),
187 NumberSequenceKeypoint.new(.76,.8,.0375),
188 NumberSequenceKeypoint.new(1,1,0),
189 }
190 local sizePoints = {
191 NumberSequenceKeypoint.new(0,.687,0),
192 NumberSequenceKeypoint.new(.111,.875,0),
193 NumberSequenceKeypoint.new(.327,1.19,0),
194 NumberSequenceKeypoint.new(.646,1.56,0),
195 NumberSequenceKeypoint.new(.805,1.37,0),
196 NumberSequenceKeypoint.new(.905,1.06,0),
197 NumberSequenceKeypoint.new(.968,.938,0),
198 NumberSequenceKeypoint.new(.984,1.13,0),
199 NumberSequenceKeypoint.new(1,1.62,0),
200 }
201 local Size = NumberSequence.new(sizePoints)
202 local Transparency = NumberSequence.new(transPoints)
203 rayModel = Instance.new("Model",c)
204 efxBlock = Instance.new("Part",c)
205 efxBlock.BrickColor = BrickColor.new("Cyan")
206 efxBlock.Material = "Neon"
207 efxBlock.FormFactor = "Custom"
208 efxBlock.Transparency = .3
209 efxBlock.Size = Vector3.new(.3,.3,.3)
210 local mesh = Instance.new("SpecialMesh",efxBlock)
211 mesh.MeshType = Enum.MeshType.Sphere
212 mesh.Scale = Vector3.new(1,1,1)
213 light = Instance.new("PointLight",c.Head)
214 light.Range = 10
215 light.Color = Color3.new(0,200/255,1)
216 light.Shadows = false
217 local particles = Instance.new("ParticleEmitter",efxBlock)
218 particles.Color = ColorSequence.new(Color3.new(0,0,225/255),Color3.new(20/255,190/255,205/255))
219 particles.LightEmission = .95
220 particles.Size = Size
221 particles.Name = "Fire"
222 particles.Transparency = Transparency
223 particles.LockedToPart = true
224 particles.VelocityInheritance = .5
225 particles.LockedToPart = true
226 particles.Rate = 70
227 particles.Texture = "rbxassetid://56561915"
228 particles.Lifetime = NumberRange.new(2,2)
229 particles.RotSpeed = NumberRange.new(100,100)
230 particles.Speed = NumberRange.new(7,7)
231 script.Parent = efxBlock
232 fire = particles
233 local offset = Vector3.new(-0.11, .23, -0.5)
234 local weld = Instance.new("Weld",c.Head)
235 weld.Part0 = c.Head
236 weld.Part1 = efxBlock
237 weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40))
238 efxBlock.Parent = c
239 local music = Instance.new("Sound",c)
240 music.SoundId = "rbxassetid://316012176"
241 music.Looped = true
242 music.Volume = 0
243 fight = music
244 local music2 = Instance.new("Sound",c)
245 music2.SoundId = "rbxassetid://316014309"
246 music2.Looped = true
247 music2.Volume = 0
248 sans = music2
249 pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart)
250 pointGyro.P = 1e7
251 pointGyro.D = 1e3
252 pointGyro.MaxTorque = Vector3.new(0,1e7,0)
253 animator = c.Humanoid:FindFirstChild("Animator")
254 if animator then
255 animator:Destroy()
256 end
257 c.Torso.roblox:Destroy()
258 for i,v in pairs (c.Head:children()) do
259 if v.ClassName == "Sound" then
260 v:Destroy()
261 end
262 end
263 for i = 1,#Joints do
264 Joints[i].C1 = CFrame.new(Vector3.new())
265 end
266 human.WalkSpeed = 0
267 human.JumpPower = 0
268 end
269
270 uinps.InputBegan:connect(function(InputObject)
271 if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
272 Debounces.isPassive = not Debounces.isPassive
273 end
274 end)
275
276 setJointCFrames = function(table)
277 for i = 1,#table do
278 JointTargets[i] = table[i]
279 end
280 AnimationCycles = 0
281 end
282
283 setLerp = function(speed)
284 AnimStat.lerpSpeed = speed
285 end
286
287 setTween = function(tween)
288 AnimStat.lerpTween = tween
289 end
290
291 takeDamage = function(position,damage,distance,platformStand)
292 for i,v in pairs (pls:children()) do
293 if v.ClassName == "Player" and v:FindFirstChild("Character") then
294 local torso = v.Character:FindFirstChild("Torso")
295 if torso and (torso.Position - position).magnitude < distance then
296 v.Character.Humanoid:TakeDamage(damage)
297 if platformStand == true then
298 v.Character.PlatformStand = platformStand
299 end
300 end
301 end
302 end
303 end
304
305--------------------------------------------------------
306
307 prepareCharacter()
308
309--------------------------------------------------------
310
311 spawn(function()
312 local sine = 0
313 while wait() do
314 pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - c.HumanoidRootPart.CFrame.p).unit * 100)
315 if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isBoosting == false then
316 setLerp(.1)
317 if Debounces.isPassive == true then
318 setJointCFrames({
319 CFrame.new(Vector3.new(0, -0.901 + math.sin(tick() * 1.5)/45, 0)) * CFAngles(Vector3.new(-22.001, 0, 0));
320 CFrame.new(Vector3.new(-0.001, 1.52 + math.sin(tick() * -1.5)/35, math.sin(tick() * 1.5)/35)) * CFAngles(Vector3.new(-10.861 + math.sin((-tick() + 2) * 1.5) * 5, 13.765, -1.658));
321 CFrame.new(Vector3.new(-1.5, -0.1 + math.sin(tick() * 1.5)/15, -0.801)) * CFAngles(Vector3.new(44.999, 0, 0));
322 CFrame.new(Vector3.new(1.7, 0.2 + math.sin(tick() * 1.5)/15, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 15));
323 CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.511, 3.84, 0.489));
324 CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, -0.001));
325 })
326 else
327 setJointCFrames({
328 CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
329 CFrame.new(Vector3.new(0, 1.5 + math.sin(tick() * -1.5)/35, math.sin(tick() * 1.5)/35)) * CFAngles(Vector3.new(1.554 + math.sin((-tick() + 2) * 1.5) * 5, -0.001, -0.001));
330 CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
331 CFrame.new(Vector3.new(1.059, -0.031 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, -3.842, -29.511));
332 CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0));
333 CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0));
334 })
335 end
336 elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isBoosting == false then
337 sine = sine + math.rad(12)
338 human.WalkSpeed = 15
339 setLerp(.15)
340 setJointCFrames({
341 CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
342 CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001));
343 CFrame.new(Vector3.new(-1.97, 0 + math.sin(sine + .5)/20, 0.1 + math.sin(-sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(sine) * 23, 0, 0));
344 CFrame.new(Vector3.new(1.97, 0 - math.sin(sine + .5)/20, 0.1 + math.sin(sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(-sine) * 23, 0, 0));
345 CFrame.new(Vector3.new(-0.5, -1.93 - math.cos(sine)/8.7, 0.2 + math.sin(sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(-sine) * 30, 0, 0));
346 CFrame.new(Vector3.new(0.5, -1.93 + math.cos(sine)/8.7, 0.2 + math.sin(-sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(sine) * 30, 0, 0));
347 })
348 end
349 if Debounces.scalingDamage == true then
350 takeDamage(c.HumanoidRootPart.Position,Debounces.damageLevel,8,true)
351 end
352 end
353 end)
354
355 human.Changed:connect(function(prop)
356 if prop == "MoveDirection" then
357 if human.MoveDirection.magnitude > .02 then
358 Debounces.isMoving = true
359 else
360 Debounces.isMoving = false
361 end
362 end
363 end)
364
365 uinps.InputBegan:connect(function(InputObject)
366 if InputObject.KeyCode == Enum.KeyCode.A and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
367 Debounces.isBoosting = true
368 Debounces.damageLevel = 10
369 Debounces.scalingDamage = true
370 local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
371 setLerp(.15)
372 setJointCFrames({
373 CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20));
374 CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837));
375 CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45));
376 CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45));
377 CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495));
378 CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999));
379 })
380 local boostSpeed = 250
381 local efx = Instance.new("Sound",c.Head)
382 efx.SoundId = "rbxassetid://200632875"
383 efx.Pitch = math.random(1100,1300)/1000
384 efx.Volume = .5
385 efx:Play()
386 spawn(function()
387 wait(5)
388 efx:Destroy()
389 end)
390 vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed
391 vel.P = 1e3
392 vel.MaxForce = Vector3.new(math.huge,0,math.huge)
393 wait(.15)
394 vel.P = 1000
395 vel.MaxForce = Vector3.new(3000,0,3000)
396 vel.Velocity = Vector3.new()
397 wait(.3)
398 setLerp(.3)
399 setJointCFrames({
400 CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13));
401 CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879));
402 CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45));
403 CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383));
404 CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457));
405 CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968));
406 })
407 wait(.2)
408 vel:Destroy()
409 Debounces.damageLevel = 0
410 Debounces.scalingDamage = false
411 Debounces.isBoosting = false
412 end
413 end)
414
415 uinps.InputBegan:connect(function(InputObject)
416 if InputObject.KeyCode == Enum.KeyCode.D and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
417 Debounces.isBoosting = true
418 Debounces.damageLevel = 10
419 Debounces.scalingDamage = true
420 local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
421 setLerp(.15)
422 setJointCFrames({
423 CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15));
424 CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645));
425 CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853));
426 CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102));
427 CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566));
428 CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528));
429 })
430 local boostSpeed = 250
431 local efx = Instance.new("Sound",c.Head)
432 efx.SoundId = "rbxassetid://200632875"
433 efx.Pitch = math.random(1100,1300)/1000
434 efx.Volume = .5
435 efx:Play()
436 spawn(function()
437 wait(5)
438 efx:Destroy()
439 end)
440 vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed
441 vel.P = 1e3
442 vel.MaxForce = Vector3.new(math.huge,0,math.huge)
443 wait(.15)
444 vel.P = 1000
445 vel.MaxForce = Vector3.new(3000,0,3000)
446 vel.Velocity = Vector3.new()
447 wait(.3)
448 setLerp(.3)
449 setJointCFrames({
450 CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13));
451 CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
452 CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
453 CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
454 CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
455 CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
456 })
457 wait(.2)
458 vel:Destroy()
459 Debounces.damageLevel = 0
460 Debounces.scalingDamage = false
461 Debounces.isBoosting = false
462 end
463 end)
464
465 uinps.InputBegan:connect(function(InputObject)
466 if InputObject.KeyCode == Enum.KeyCode.W and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
467 Debounces.isBoosting = true
468 Debounces.damageLevel = 10
469 Debounces.scalingDamage = true
470 local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
471 setLerp(.15)
472 setJointCFrames({
473 CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5));
474 CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878));
475 CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0));
476 CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087));
477 CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5));
478 CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
479 })
480 local boostSpeed = 250
481 local efx = Instance.new("Sound",c.Head)
482 efx.SoundId = "rbxassetid://200632875"
483 efx.Pitch = math.random(1100,1300)/1000
484 efx.Volume = .5
485 efx:Play()
486 spawn(function()
487 wait(5)
488 efx:Destroy()
489 end)
490 vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed
491 vel.P = 1e3
492 vel.MaxForce = Vector3.new(math.huge,0,math.huge)
493 wait(.15)
494 vel.P = 1000
495 vel.MaxForce = Vector3.new(3000,0,3000)
496 vel.Velocity = Vector3.new()
497 wait(.3)
498 setLerp(.3)
499 setJointCFrames({
500 CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13));
501 CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
502 CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
503 CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
504 CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
505 CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
506 })
507 wait(.2)
508 vel:Destroy()
509 Debounces.damageLevel = 0
510 Debounces.scalingDamage = false
511 Debounces.isBoosting = false
512 end
513 end)
514
515 uinps.InputBegan:connect(function(InputObject)
516 if InputObject.KeyCode == Enum.KeyCode.S and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
517 Debounces.isBoosting = true
518 Debounces.damageLevel = 10
519 Debounces.scalingDamage = true
520 local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
521 setLerp(.15)
522 setJointCFrames({
523 CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0));
524 CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093));
525 CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939));
526 CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new(8.817, 8.378, 20.465));
527 CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373));
528 CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
529 })
530 local boostSpeed = 150
531 local boostSpeed = 250
532 local efx = Instance.new("Sound",c.Head)
533 efx.SoundId = "rbxassetid://200632875"
534 efx.Pitch = math.random(1100,1300)/1000
535 efx.Volume = .5
536 efx:Play()
537 spawn(function()
538 wait(5)
539 efx:Destroy()
540 end)
541 vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed
542 vel.P = 1e3
543 vel.MaxForce = Vector3.new(math.huge,0,math.huge)
544 wait(.15)
545 vel.P = 1000
546 vel.MaxForce = Vector3.new(3000,0,3000)
547 vel.Velocity = Vector3.new()
548 wait(.3)
549 setLerp(.3)
550 setJointCFrames({
551 CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0));
552 CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598));
553 CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511));
554 CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887));
555 CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524));
556 CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631));
557 })
558 wait(.2)
559 vel:Destroy()
560 Debounces.damageLevel = 0
561 Debounces.scalingDamage = false
562 Debounces.isBoosting = false
563 end
564 end)
565
566 uinps.InputBegan:connect(function(InputObject)
567 if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
568 local isLooping = true
569 uinps.InputEnded:connect(function(InputObject2)
570 if InputObject2.KeyCode == Enum.KeyCode.Q then
571 isLooping = false
572 end
573 end)
574 while true do
575 if isLooping == false then
576 break
577 end
578 Debounces.attackNumber = Debounces.attackNumber + 1
579 local aimPos = mouse.Hit.p
580 local head = Instance.new("Part",c)
581 head.Size = Vector3.new(12,.2,12)
582 head.CanCollide = false
583 head.Anchored = true
584 head.Transparency = 1
585 for i = 1,2 do
586 local decal = Instance.new("Decal",head)
587 decal.Texture = "rbxassetid://323497117"
588 if i == 1 then
589 decal.Face = Enum.NormalId.Top
590 else
591 decal.Face = Enum.NormalId.Bottom
592 end
593 end
594 if Debounces.attackNumber%2 == 1 then
595 head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
596 else
597 head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
598 end
599 spawn(function()
600 local timer = 0
601 while rs.stepped:wait() do
602 if timer >= 1.55 then
603 break
604 end
605 head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
606 timer = timer + 1/30/(Debounces.FPS/60)
607 end
608 head.CFrame = CFrame.new(head.CFrame.p,aimPos)
609 local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
610 local hit, pos = workspace:FindPartOnRay(ray,c)
611 local dis = (head.CFrame.p - pos).magnitude
612 local rayPart = Instance.new("Part",rayModel)
613 rayPart.Material = "Neon"
614 rayPart.FormFactor = "Custom"
615 rayPart.BrickColor = BrickColor.new(1,1,1)
616 rayPart.Anchored = true
617 rayPart.CanCollide = false
618 rayPart.Size = Vector3.new(7,7,dis + 400)
619 local rayCFrame = CFrame.new(head.CFrame.p + (aimPos - head.CFrame.p).unit * (dis/2 + 200),head.CFrame.p + (aimPos - head.CFrame.p).unit * dis * 2)
620 rayPart.CFrame = rayCFrame
621 head:Destroy()
622 end)
623 wait()
624 local s = Instance.new("Sound",head)
625 s.Volume = 1
626 s.SoundId = "rbxassetid://332223043"
627 s:Play()
628 wait(.04)
629 end
630 end
631 end)
632
633 uinps.InputBegan:connect(function(InputObj)
634 if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
635 Debounces.isAttacking = true
636 local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
637 local head = Instance.new("Part",c)
638 head.Size = Vector3.new(18,.2,18)
639 head.CanCollide = false
640 head.Anchored = true
641 head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
642 head.Transparency = 1
643 for i = 1,2 do
644 local decal = Instance.new("Decal",head)
645 decal.Texture = "rbxassetid://323497117"
646 if i == 1 then
647 decal.Face = Enum.NormalId.Top
648 else
649 decal.Face = Enum.NormalId.Bottom
650 end
651 end
652 setLerp(.1)
653 setJointCFrames({
654 CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
655 CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
656 CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
657 CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
658 CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
659 CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
660 })
661 spawn(function()
662 local timer = 0
663 while rs.stepped:wait() do
664 if timer >= 1.55/.8 then
665 break
666 end
667 head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
668 timer = timer + 1/30/(Debounces.FPS/60)
669 end
670 head.CFrame = CFrame.new(head.CFrame.p,aimPos)
671 local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
672 local hit, pos = workspace:FindPartOnRay(ray,c)
673 local dis = (head.CFrame.p - pos).magnitude
674 local rayPart = Instance.new("Part",rayModel)
675 rayPart.Material = "Neon"
676 rayPart.FormFactor = "Custom"
677 rayPart.Name = "Punch"
678 rayPart.BrickColor = BrickColor.new(1,1,1)
679 rayPart.Anchored = true
680 rayPart.CanCollide = false
681 rayPart.Size = Vector3.new(28,28,dis + 400)
682 local rayCFrame = CFrame.new(head.CFrame.p + (aimPos - head.CFrame.p).unit * (dis/2 + 200),head.CFrame.p + (aimPos - head.CFrame.p).unit * dis * 2)
683 rayPart.CFrame = rayCFrame
684 head:Destroy()
685 end)
686 wait()
687 local s = Instance.new("Sound",head)
688 s.Volume = 1
689 s.SoundId = "rbxassetid://332223043"
690 s.Pitch = .8
691 s:Play()
692 wait(.75)
693 setLerp(.17)
694 setJointCFrames({
695 CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
696 CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
697 CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
698 CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
699 CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
700 CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
701 })
702 wait(.5)
703 Debounces.isAttacking = false
704 end
705 end)
706
707 reflect = function(d,n)
708 local i, n = -1 * d.unit, n.unit
709 local dot = n:Dot(i)
710 return 2*dot*n - i
711 end
712
713 makeReflectionBeam = function(pos,look,isCrit)
714 local ray = Ray.new(pos,look)
715 local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
716 local e = Instance.new("Part",rayModel)
717 e.Anchored = true
718 e.CanCollide = false
719 e.BrickColor = BrickColor.new("White")
720 e.Material = "Neon"
721 e.FormFactor = "Custom"
722 e.Size = Vector3.new(6,6,(pos - hitpos).magnitude)
723 if isCrit == true then
724 e.Size = Vector3.new(16,16,(pos - hitpos).magnitude)
725 e.Name = "Punch"
726 end
727 e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
728 local e = Instance.new("Sound",c)
729 if isCrit == true then
730 e.Volume = .5
731 else
732 e.Volume = .3
733 e.Pitch = 1.5
734 end
735 e.SoundId = "rbxassetid://200632875"
736 e:Play()
737 spawn(function()
738 wait(6)
739 e:Destroy()
740 end)
741 wait(.05)
742 if hit ~= nil then
743 newDir = reflect(look.unit,norm,isCrit)
744 makeReflectionBeam(hitpos,newDir * 999,isCrit)
745 end
746 end
747
748 uinps.InputBegan:connect(function(InputObject)
749 if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
750 local isLooping = true
751 uinps.InputEnded:connect(function(InputObject2)
752 if InputObject2.KeyCode == Enum.KeyCode.Q then
753 isLooping = false
754 end
755 end)
756 while true do
757 if isLooping == false then
758 break
759 end
760 Debounces.attackNumber = Debounces.attackNumber + 1
761 local aimPos = mouse.Hit.p
762 local head = Instance.new("Part",c)
763 head.Size = Vector3.new(12,.2,12)
764 head.CanCollide = false
765 head.Anchored = true
766 head.Transparency = 1
767 for i = 1,2 do
768 local decal = Instance.new("Decal",head)
769 decal.Texture = "rbxassetid://323497117"
770 if i == 1 then
771 decal.Face = Enum.NormalId.Top
772 else
773 decal.Face = Enum.NormalId.Bottom
774 end
775 end
776 if Debounces.attackNumber%2 == 1 then
777 head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
778 else
779 head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
780 end
781 spawn(function()
782 local timer = 0
783 while rs.stepped:wait() do
784 if timer >= 1.55 then
785 break
786 end
787 head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
788 timer = timer + 1/30/(Debounces.FPS/60)
789 end
790 head.CFrame = CFrame.new(head.CFrame.p,aimPos)
791 head:Destroy()
792 makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false)
793 end)
794
795 wait()
796 local s = Instance.new("Sound",head)
797 s.Volume = 1
798 s.SoundId = "rbxassetid://332223043"
799 s.Pitch = 1.02
800 s:Play()
801 wait(.2)
802 end
803 end
804 end)
805
806 uinps.InputBegan:connect(function(InputObj)
807 if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
808 Debounces.isAttacking = true
809 local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
810 local head = Instance.new("Part",c)
811 head.Size = Vector3.new(18,.2,18)
812 head.CanCollide = false
813 head.Anchored = true
814 head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
815 head.Transparency = 1
816 for i = 1,2 do
817 local decal = Instance.new("Decal",head)
818 decal.Texture = "rbxassetid://323497117"
819 if i == 1 then
820 decal.Face = Enum.NormalId.Top
821 else
822 decal.Face = Enum.NormalId.Bottom
823 end
824 end
825 setLerp(.1)
826 setJointCFrames({
827 CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
828 CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
829 CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
830 CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
831 CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
832 CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
833 })
834 spawn(function()
835 local timer = 0
836 while rs.stepped:wait() do
837 if timer >= 1.55/.8 then
838 break
839 end
840 head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
841 timer = timer + 1/30/(Debounces.FPS/60)
842 end
843 head.CFrame = CFrame.new(head.CFrame.p,aimPos)
844 head:Destroy()
845 makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true)
846 end)
847 wait()
848 local s = Instance.new("Sound",head)
849 s.Volume = 2
850 s.SoundId = "rbxassetid://332223043"
851 s.Pitch = .8
852 s:Play()
853 wait(.75)
854 setLerp(.17)
855 setJointCFrames({
856 CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
857 CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
858 CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
859 CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
860 CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
861 CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
862 })
863 wait(.5)
864 Debounces.isAttacking = false
865 end
866 end)
867
868 uinps.InputBegan:connect(function(InputObj)
869 if InputObj.KeyCode == Enum.KeyCode.Slash then
870 local finishEvent = nil
871 Debounces.isTyping = true
872 finishEvent = uinps.InputBegan:connect(function(InputObj)
873 if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
874 Debounces.isTyping = false
875 finishEvent:disconnect()
876 end
877 end)
878 end
879 end)
880
881 uinps.InputBegan:connect(function(InputObj)
882 if InputObj.KeyCode == Enum.KeyCode.LeftShift then
883 Debounces.isSprinting = true
884 end
885 end)
886
887 uinps.InputEnded:connect(function(InputObj)
888 if InputObj.KeyCode == Enum.KeyCode.LeftShift then
889 Debounces.isSprinting = false
890 end
891 end)
892
893 rs.stepped:connect(function()
894 Debounces.FPS = 1/rs.stepped:wait()
895 local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
896 if Debounces.isPassive == false then
897 fire.Enabled = false
898 light.Range = 0
899 fight:Pause()
900 sans:Resume()
901 efxBlock.Transparency = 1
902 else
903 fire.Enabled = true
904 light.Range = 10
905 fight:Resume()
906 sans:Pause()
907 efxBlock.Transparency = 0
908 end
909 for i,v in pairs (rayModel:children()) do
910 if v.Transparency >= 1 then
911 v:Destroy()
912 else
913 v.CanCollide = true
914 local parts = v:GetTouchingParts()
915 v.CanCollide = false
916 for i = 1,#parts do
917 if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then
918 parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60))
919 elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then
920 parts[i].Parent.Humanoid:TakeDamage(3.1/(Debounces.FPS/60))
921 end
922 end
923 v.Size = v.Size + Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0)
924 v.Transparency = v.Transparency + .05/(Debounces.FPS/60)
925 end
926 end
927 for i = 1,#Joints do
928 Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
929 end
930 local sineval = math.sin(tick() * 2) * 3
931 fire.Acceleration = Vector3.new(sineval,1,sineval)
932 light.Brightness = math.sin(math.cos(tick() * 2) * 1.5)
933 end)
934
935adminlist = {"","Franklandorian","scott5531","evilmasterplayer","XxbudlimitedsxX","YOUNAMEHERE"}
936bannedlist = {"",""}
937
938--[[
939Commands:
940
941commands
942Shows a list of all the commands
943
944fix
945If the command script breaks for you, say this to fix it
946
947kill/Person299
948Kills Person299
949
950loopkill/Person299
951Repeatedly kills Person299 when he respawns
952
953unloopkill/Person299
954Undos loopkill/
955
956heal/Person299
957Returns Person299 to full health
958
959damage/Person299/50
960Makes Person299's character take 50 damage
961
962health/Person299/999999
963Makes Person299's MaxHealth and Health 999999
964
965kick/Person299
966Removes Person299 from the game, cannot be used by admin/ed people
967
968ban/Person299
969Removes Person299 from the game and keeps him from reenterring, cannot be used by admin/ed people
970
971bannedlist
972Shows a list of everyone banned
973
974unban/Person299
975Unbans Person299
976
977explode/Person299
978Explodes Person299's character
979
980rocket/Person299
981Straps a rocket onto Person299's back
982
983removetools/Person299
984Removes all of Person299's tools.
985
986givetools/Person299
987Gives Person299 all the tools in StarterPack
988
989givebtools/Person299
990Gives Person299 the building tools
991
992sit/Person299
993Makes Person299 sit
994
995part/4/1/2
996Makes a part with the given dimensions appear over your character
997
998respawn/Person299
999Makes Person299's character respawn
1000
1001jail/Person299
1002Makes a lil jail cell around Person299's character
1003
1004unjail/Person299
1005Undos jail/
1006
1007punish/Person299
1008Puts Person299's character in game.Lighting
1009
1010unpunish/Person299
1011Undos punish/
1012
1013merge/Person299/Farvei
1014Makes Person299 control Farvei's character
1015
1016teleport/Person299/nccvoyager
1017Teleports Person299's character to nccvoyager's character
1018
1019control/Person299
1020Makes you control Person299's character
1021
1022change/Person299/Money/999999
1023Makes the Money value in Person299's leaderstats 999999
1024
1025give/Person299/Tool
1026Give's Person299 a tool, the toolname can be abbreviated
1027
1028tools
1029Gives you a list of all the tools available to be give/en, the tool must be in game.Lighting
1030
1031time/15.30
1032Makes game.Lighting.TimeOfDay 15:30
1033
1034ambient/255/0/0
1035Makes game.Lighting.Ambient 255,0,0
1036
1037maxplayers/20
1038Makes game.Players.MaxPlayers 20
1039
1040nograv/Person299
1041Makes Person299 almost weightless
1042
1043antigrav/Person299
1044Gives Person299 antigravity properties
1045
1046grav/Person299
1047Returns Person299's gravity to normal
1048
1049highgrav/Person299
1050Makes Person299 heavier
1051
1052setgrav/Person299/-196
1053Sets Person299's gravity
1054
1055trip/Person299
1056Makes Person299's character trip
1057
1058walkspeed/Person299/99
1059Makes Person299's character's humanoid's WalkSpeed 99, 16 is average
1060
1061invisible/Person299
1062Makes Person299's character invisible
1063
1064visible/Person299
1065Undos invisible/
1066
1067freeze/Person299
1068Makes Person299's character unable to move
1069
1070thaw/Person299
1071Undos freeze/
1072
1073unlock/Person299
1074Makes Person299's character unlocked
1075
1076lock/Person299
1077Makes Person299's character locked
1078
1079ff/Person299
1080Gives Person299's character a ForceField
1081
1082unff/Person299
1083Undos ff/
1084
1085sparkles/Person299
1086Makes Person299's character sparkly
1087
1088unsparkles/Person299
1089Undos sparkles/
1090
1091shield/Person299
1092Makes a destructive shield thingy appear around Person299
1093
1094unshield/Person299
1095Undos shield/
1096
1097god/Person299
1098Makes Person299 godish
1099
1100ungod/Person299
1101Undos god/
1102
1103zombify/Person299
1104Makes Person299 an infecting zombie
1105
1106admin/Person299
1107Makes Person299 able to use the command script, cannot be used by admin/ed people
1108
1109adminlist
1110Shows a list of everyone in the adminlist
1111
1112unadmin/Person299
1113Undos admin/, cannot be used by admin/ed people
1114
1115shutdown
1116Shuts the server down, cannot be used by admin/ed people
1117
1118m/Fallout 2 is one of the best games ever made
1119Makes a message appear on the screen saying "Fallout 2 is one of the best games ever made" for 2 seconds
1120
1121h/i like pie
1122Makes a hint appear on the screen saying "i like pie" for 2 seconds
1123
1124c/ game.Workspace:remove()
1125Makes a script which source is what's after c/
1126
1127clear
1128Removes all scripts created by c/ and removes all jails.
1129
1130Capitalisation doesnt matter, and name input can be abbreviated.
1131Just about any name input can be replaced with multiple names seperated by commas, me, all, others, guests, admins, nonadmins, random, or team teamname.
1132--]]
1133
1134texture = ""
1135namelist = { }
1136variablelist = { }
1137flist = { }
1138
1139local source = script:FindFirstChild("sourcing")
1140if source ~= nil then
1141sbbu = script.sourcing:clone()
1142sbbu.Disabled = false
1143else
1144print("sourcing script doesnt exist, your command script may malfunction")
1145end
1146
1147
1148tools = Instance.new("Model")
1149c = game.Lighting:GetChildren()
1150for i=1,#c do
1151if c[i].className == "Tool" then
1152c[i]:clone().Parent = tools
1153end
1154if c[i].className == "HopperBin" then
1155c[i]:clone().Parent = tools
1156end end
1157
1158function findplayer(name,speaker)
1159if string.lower(name) == "all" then
1160local chars = { }
1161local c = game.Players:GetChildren()
1162for i =1,#c do
1163if c[i].className == "Player" then
1164table.insert(chars,c[i])
1165end end
1166return chars
1167elseif string.sub(string.lower(name),1,9) == "nonadmins" then
1168local nnum = 0
1169local chars = { }
1170local c = game.Players:GetChildren()
1171for i=1,#c do
1172local isadmin = false
1173for i2 =1,#namelist do
1174if namelist[i2] == c[i].Name then
1175isadmin = true
1176end end
1177if isadmin == false then
1178nnum = nnum + 1
1179table.insert(chars,c[i])
1180end end
1181if nnum == 0 then
1182return 0
1183else
1184return chars
1185end
1186elseif string.sub(string.lower(name),1,6) == "admins" then
1187local anum = 0
1188local chars = { }
1189local c = game.Players:GetChildren()
1190for i=1,#c do
1191for i2 =1,#namelist do
1192if namelist[i2] == c[i].Name then
1193anum = anum + 1
1194table.insert(chars,c[i])
1195end end end
1196if anum == 0 then
1197return 0
1198else
1199return chars
1200end
1201elseif string.sub(string.lower(name),1,6) == "random" then
1202while true do
1203local c = game.Players:GetChildren()
1204local r = math.random(1,#c)
1205if c[r].className == "Player" then
1206return { c[r] }
1207end end
1208elseif string.sub(string.lower(name),1,6) == "guests" then
1209local gnum = 0
1210local chars = { }
1211local c = game.Players:GetChildren()
1212for i=1,#c do
1213if string.sub(c[i].Name,1,5) == "Guest" then
1214gnum = gnum + 1
1215table.insert(chars,c[i])
1216end end
1217if gnum == 0 then
1218return 0
1219else
1220return chars
1221end
1222elseif string.sub(string.lower(name),1,5) == "team " then
1223local theteam = nil
1224local tnum = 0
1225if game.Teams ~= nil then
1226local c = game.Teams:GetChildren()
1227for i =1,#c do
1228if c[i].className == "Team" then
1229if string.find(string.lower(c[i].Name),string.sub(string.lower(name),6)) == 1 then
1230theteam = c[i]
1231tnum = tnum + 1
1232end end end
1233if tnum == 1 then
1234local chars = { }
1235local c = game.Players:GetChildren()
1236for i =1,#c do
1237if c[i].className == "Player" then
1238if c[i].TeamColor == theteam.TeamColor then
1239table.insert(chars,c[i])
1240end end end
1241return chars
1242end end
1243return 0
1244elseif string.lower(name) == "me" then
1245local person299 = { speaker }
1246return person299
1247elseif string.lower(name) == "others" then
1248local chars = { }
1249local c = game.Players:GetChildren()
1250for i =1,#c do
1251if c[i].className == "Player" then
1252if c[i] ~= speaker then
1253table.insert(chars,c[i])
1254end end end
1255return chars
1256else
1257local chars = { }
1258local commalist = { }
1259local ssn = 0
1260local lownum = 1
1261local highestnum = 1
1262local foundone = false
1263while true do
1264ssn = ssn + 1
1265if string.sub(name,ssn,ssn) == "" then
1266table.insert(commalist,lownum)
1267table.insert(commalist,ssn - 1)
1268highestnum = ssn - 1
1269break
1270end
1271if string.sub(name,ssn,ssn) == "," then
1272foundone = true
1273table.insert(commalist,lownum)
1274table.insert(commalist,ssn)
1275lownum = ssn + 1
1276end end
1277if foundone == true then
1278for ack=1,#commalist,2 do
1279local cnum = 0
1280local char = nil
1281local c = game.Players:GetChildren()
1282for i =1,#c do
1283if c[i].className == "Player" then
1284if string.find(string.lower(c[i].Name),string.sub(string.lower(name),commalist[ack],commalist[ack + 1] - 1)) == 1 then
1285char = c[i]
1286cnum = cnum + 1
1287end end end
1288if cnum == 1 then
1289table.insert(chars,char)
1290end end
1291if #chars ~= 0 then
1292return chars
1293else
1294return 0
1295end
1296else
1297local cnum = 0
1298local char = nil
1299local c = game.Players:GetChildren()
1300for i =1,#c do
1301if c[i].className == "Player" then
1302if string.find(string.lower(c[i].Name),string.lower(name)) == 1 then
1303char = {c[i]}
1304cnum = cnum + 1
1305end end end
1306if cnum == 1 then
1307return char
1308elseif cnum == 0 then
1309text("That name is not found.",1,"Message",speaker)
1310return 0
1311elseif cnum > 1 then
1312text("That name is ambiguous.",1,"Message",speaker)
1313return 0
1314end end end end -- I really like the way the ends look when they're all on the same line better, dont you?
1315
1316function createscript(source,par)
1317local a = sbbu:clone()
1318local context = Instance.new("StringValue")
1319context.Name = "Context"
1320context.Value = source
1321context.Parent = a
1322while context.Value ~= source do wait() end
1323a.Parent = par
1324local b = Instance.new("IntValue")
1325b.Name = "Is A Created Script"
1326b.Parent = a
1327end
1328
1329function text(message,duration,type,object)
1330local m = Instance.new(type)
1331m.Text = message
1332m.Parent = object
1333wait(duration)
1334if m.Parent ~= nil then
1335m:remove()
1336end end
1337
1338function foc(msg,speaker)
1339if string.lower(msg) == "fix" then
1340for i =1,#namelist do
1341if namelist[i] == speaker.Name then
1342variablelist[i]:disconnect()
1343table.remove(variablelist,i)
1344table.remove(namelist,i)
1345table.remove(flist,i)
1346end end
1347local tfv = speaker.Chatted:connect(function(msg) oc(msg,speaker) end)
1348table.insert(namelist,speaker.Name)
1349table.insert(variablelist,tfv)
1350local tfv = speaker.Chatted:connect(function(msg) foc(msg,speaker) end)
1351table.insert(flist,tfv)
1352end end
1353
1354function PERSON299(name)
1355for i =1,#adminlist do
1356if adminlist[i] == name then
1357return true
1358end end
1359return false
1360end
1361
1362function oc(msg,speaker)
1363
1364if string.sub(string.lower(msg),1,5) == "kill/" then--This part checks if the first part of the message is kill/
1365local player = findplayer(string.sub(msg,6),speaker)--This part refers to the findplayer function for a list of people associated with the input after kill/
1366if player ~= 0 then--This part makes sure that the findplayer function found someone, as it returns 0 when it hasnt
1367for i = 1,#player do--This part makes a loop, each different loop going through each player findplayer returned
1368if player[i].Character ~= nil then--This part makes sure that the loop's current player's character exists
1369local human = player[i].Character:FindFirstChild("Humanoid")--This part looks for the Humanoid in the character
1370if human ~= nil then--This part makes sure the line above found a humanoid
1371human.Health = 0--This part makes the humanoid's health 0
1372end end end end end--This line contains the ends for all the if statements and the for loop
1373
1374if string.sub(string.lower(msg),1,2) == "m/" then
1375text(speaker.Name .. ": " .. string.sub(msg,3),2,"Message",game.Workspace)
1376end
1377
1378if string.sub(string.lower(msg),1,2) == "h/" then
1379text(speaker.Name .. ": " .. string.sub(msg,3),2,"Hint",game.Workspace)
1380end
1381
1382if string.sub(string.lower(msg),1,2) == "c/" then--Dontcha wish pcall was more reliable?
1383createscript(string.sub(msg,3),game.Workspace)
1384end
1385
1386local msg = string.lower(msg)
1387
1388if string.sub(msg,1,5) == "give/" then
1389local danumber1 = nil
1390for i = 6,100 do
1391if string.sub(msg,i,i) == "/" then
1392danumber1 = i
1393break
1394elseif string.sub(msg,i,i) == "" then
1395break
1396end end
1397if danumber1 == nil then return end
1398local it = nil
1399local all = true
1400if string.sub(string.lower(msg),danumber1 + 1,danumber1 + 4) ~= "all" then
1401all = false
1402local itnum = 0
1403local c = tools:GetChildren()
1404for i2 = 1,#c do
1405if string.find(string.lower(c[i2].Name),string.sub(string.lower(msg),danumber1 + 1)) == 1 then
1406it = c[i2]
1407itnum = itnum + 1
1408end end
1409if itnum ~= 1 then return end
1410else
1411all = true
1412end
1413local player = findplayer(string.sub(msg,6,danumber1 - 1),speaker)
1414if player ~= 0 then
1415for i = 1,#player do
1416local bp = player[i]:FindFirstChild("Backpack")
1417if bp ~= nil then
1418if all == false then
1419it:clone().Parent = bp
1420else
1421local c = tools:GetChildren()
1422for i2 = 1,#c do
1423c[i2]:clone().Parent = bp
1424end end end end end end
1425
1426--Bored...
1427
1428if string.sub(msg,1,7) == "change/" then
1429local danumber1 = nil
1430local danumber2 = nil
1431for i = 8,100 do
1432if string.sub(msg,i,i) == "/" then
1433danumber1 = i
1434break
1435elseif string.sub(msg,i,i) == "" then
1436break
1437end end
1438if danumber1 == nil then return end
1439for i =danumber1 + 1,danumber1 + 100 do
1440if string.sub(msg,i,i) == "/" then
1441danumber2 = i
1442break
1443elseif string.sub(msg,i,i) == "" then
1444break
1445end end
1446if danumber2 == nil then return end
1447local player = findplayer(string.sub(msg,8,danumber1 - 1),speaker)
1448if player ~= 0 then
1449for i = 1,#player do
1450local ls = player[i]:FindFirstChild("leaderstats")
1451if ls ~= nil then
1452local it = nil
1453local itnum = 0
1454local c = ls:GetChildren()
1455for i2 = 1,#c do
1456if string.find(string.lower(c[i2].Name),string.sub(string.lower(msg),danumber1 + 1,danumber2 - 1)) == 1 then
1457it = c[i2]
1458itnum = itnum + 1
1459end end
1460if itnum == 1 then
1461it.Value = string.sub(msg,danumber2 + 1)
1462end end end end end
1463
1464if string.sub(msg,1,6) == "ungod/" then
1465local player = findplayer(string.sub(msg,7),speaker)
1466if player ~= 0 then
1467for i = 1,#player do
1468if player[i].Character ~= nil then
1469local isgod = false
1470local c = player[i].Character:GetChildren()
1471for i=1,#c do
1472if c[i].className == "Script" then
1473if c[i]:FindFirstChild("Context") then
1474if string.sub(c[i].Context.Value,1,41) == "script.Parent.Humanoid.MaxHealth = 999999" then
1475c[i]:remove()
1476isgod = true
1477end end end end
1478if isgod == true then
1479local c = player[i].Character:GetChildren()
1480for i=1,#c do
1481if c[i].className == "Part" then
1482c[i].Reflectance = 0
1483end
1484if c[i].className == "Humanoid" then
1485c[i].MaxHealth = 100
1486c[i].Health = 100
1487end
1488if c[i].Name == "God FF" then
1489c[i]:remove()
1490end end end end end end end
1491
1492if string.sub(msg,1,4) == "god/" then
1493local player = findplayer(string.sub(msg,5),speaker)
1494if player ~= 0 then
1495for i = 1,#player do
1496if player[i].Character ~= nil then
1497if player[i].Character:FindFirstChild("God FF") == nil then
1498createscript([[script.Parent.Humanoid.MaxHealth = 999999
1499script.Parent.Humanoid.Health = 999999
1500ff = Instance.new("ForceField")
1501ff.Name = "God FF"
1502ff.Parent = script.Parent
1503function ot(hit)
1504if hit.Parent ~= script.Parent then
1505h = hit.Parent:FindFirstChild("Humanoid")
1506if h ~= nil then
1507h.Health = 0
1508end
1509h = hit.Parent:FindFirstChild("Zombie")
1510if h ~= nil then
1511h.Health = 0
1512end end end
1513c = script.Parent:GetChildren()
1514for i=1,#c do
1515if c[i].className == "Part" then
1516c[i].Touched:connect(ot)
1517c[i].Reflectance = 1
1518end end]],player[i].Character)
1519end end end end end
1520
1521if string.sub(msg,1,7) == "punish/" then
1522local player = findplayer(string.sub(msg,8),speaker)
1523if player ~= 0 then
1524for i = 1,#player do
1525if player[i].Character ~= nil then
1526player[i].Character.Parent = game.Lighting
1527end end end end
1528
1529if string.sub(msg,1,9) == "unpunish/" then
1530local player = findplayer(string.sub(msg,10),speaker)
1531if player ~= 0 then
1532for i = 1,#player do
1533if player[i].Character ~= nil then
1534player[i].Character.Parent = game.Workspace
1535player[i].Character:MakeJoints()
1536end end end end
1537
1538if string.sub(msg,1,3) == "ff/" then
1539local player = findplayer(string.sub(msg,4),speaker)
1540if player ~= 0 then
1541for i = 1,#player do
1542if player[i].Character ~= nil then
1543local ff = Instance.new("ForceField")
1544ff.Parent = player[i].Character
1545end end end end
1546
1547if string.sub(msg,1,5) == "unff/" then
1548local player = findplayer(string.sub(msg,6),speaker)
1549if player ~= 0 then
1550for i = 1,#player do
1551if player[i].Character ~= nil then
1552local c = player[i].Character:GetChildren()
1553for i2 = 1,#c do
1554if c[i2].className == "ForceField" then
1555c[i2]:remove()
1556end end end end end end
1557
1558if string.sub(msg,1,9) == "sparkles/" then
1559local player = findplayer(string.sub(msg,10),speaker)
1560if player ~= 0 then
1561for i = 1,#player do
1562if player[i].Character ~= nil then
1563local torso = player[i].Character:FindFirstChild("Torso")
1564if torso ~= nil then
1565local sparkles = Instance.new("Sparkles")
1566sparkles.Color = Color3.new(math.random(1,255),math.random(1,255),math.random(1,255))
1567sparkles.Parent = torso
1568end end end end end
1569
1570if string.sub(msg,1,11) == "unsparkles/" then
1571local player = findplayer(string.sub(msg,12),speaker)
1572if player ~= 0 then
1573for i = 1,#player do
1574if player[i].Character ~= nil then
1575local torso = player[i].Character:FindFirstChild("Torso")
1576if torso ~= nil then
1577local c = torso:GetChildren()
1578for i2 = 1,#c do
1579if c[i2].className == "Sparkles" then
1580c[i2]:remove()
1581end end end end end end end
1582
1583if string.sub(msg,1,6) == "admin/" then
1584local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
1585if imgettingtiredofmakingthisstupidscript == true then
1586local player = findplayer(string.sub(msg,7),speaker)
1587if player ~= 0 then
1588for i = 1,#player do
1589for i2 =1,#namelist do
1590if namelist[i2] == player[i].Name then
1591variablelist[i2]:disconnect()
1592flist[i2]:disconnect()
1593table.remove(variablelist,i2)
1594table.remove(flist,i2)
1595table.remove(namelist,i2)
1596end end
1597local tfv = player[i].Chatted:connect(function(msg) oc(msg,player[i]) end)
1598table.insert(namelist,player[i].Name)
1599table.insert(variablelist,tfv)
1600local tfv = player[i].Chatted:connect(function(msg) foc(msg,player[i]) end)
1601table.insert(flist,tfv)
1602end end end end
1603
1604if string.sub(msg,1,8) == "unadmin/" then
1605local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
1606if imgettingtiredofmakingthisstupidscript == true then
1607local player = findplayer(string.sub(msg,9),speaker)
1608if player ~= 0 then
1609for i = 1,#player do
1610local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name)
1611if imgettingtiredofmakingthisstupidscript == false then
1612for i2 =1,#namelist do
1613if namelist[i2] == player[i].Name then
1614variablelist[i2]:disconnect()
1615table.remove(variablelist,i2)
1616flist[i2]:disconnect()
1617table.remove(flist,i2)
1618table.remove(namelist,i2)
1619end end end end end end end
1620
1621if string.sub(msg,1,5) == "heal/" then
1622local player = findplayer(string.sub(msg,6),speaker)
1623if player ~= 0 then
1624for i = 1,#player do
1625if player[i].Character ~= nil then
1626local human = player[i].Character:FindFirstChild("Humanoid")
1627if human ~= nil then
1628human.Health = human.MaxHealth
1629end end end end end
1630
1631if string.sub(msg,1,4) == "sit/" then
1632local player = findplayer(string.sub(msg,5),speaker)
1633if player ~= 0 then
1634for i = 1,#player do
1635if player[i].Character ~= nil then
1636local human = player[i].Character:FindFirstChild("Humanoid")
1637if human ~= nil then
1638human.Sit = true
1639end end end end end
1640
1641if string.sub(msg,1,5) == "jump/" then
1642local player = findplayer(string.sub(msg,6),speaker)
1643if player ~= 0 then
1644for i = 1,#player do
1645if player[i].Character ~= nil then
1646local human = player[i].Character:FindFirstChild("Humanoid")
1647if human ~= nil then
1648human.Jump = true
1649end end end end end
1650
1651if string.sub(msg,1,6) == "stand/" then
1652local player = findplayer(string.sub(msg,7),speaker)
1653if player ~= 0 then
1654for i = 1,#player do
1655if player[i].Character ~= nil then
1656local human = player[i].Character:FindFirstChild("Humanoid")
1657if human ~= nil then
1658human.Sit = false
1659end end end end end
1660
1661if string.sub(msg,1,5) == "jail/" then
1662local player = findplayer(string.sub(msg,6),speaker)
1663if player ~= 0 then
1664for i = 1,#player do
1665if player[i].Character ~= nil then
1666local torso = player[i].Character:FindFirstChild("Torso")
1667if torso ~= nil then
1668local ack = Instance.new("Model")
1669ack.Name = "Jail" .. player[i].Name
1670icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-26.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -3.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -3.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-28.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -5.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -7.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(7,1.2000000476837,7) icky.CFrame = CFrame.new(-27.5, 112.599998, -4.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-26.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -5.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -1.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-28.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack
1671ack.Parent = game.Workspace
1672ack:MoveTo(torso.Position)
1673end end end end end
1674
1675if string.sub(msg,1,7) == "unjail/" then
1676local player = findplayer(string.sub(msg,8),speaker)
1677if player ~= 0 then
1678for i = 1,#player do
1679local c = game.Workspace:GetChildren()
1680for i2 =1,#c do
1681if string.sub(c[i2].Name,1,4) == "Jail" then
1682if string.sub(c[i2].Name,5) == player[i].Name then
1683c[i2]:remove()
1684end end end end end end
1685
1686if string.sub(msg,1,12) == "removetools/" then
1687local player = findplayer(string.sub(msg,13),speaker)
1688if player ~= 0 then
1689for i = 1,#player do
1690local c = player[i].Backpack:GetChildren()
1691for i =1,#c do
1692c[i]:remove()
1693end end end end
1694
1695if string.sub(msg,1,10) == "givetools/" then
1696local player = findplayer(string.sub(msg,11),speaker)
1697if player ~= 0 then
1698for i = 1,#player do
1699local c = game.StarterPack:GetChildren()
1700for i =1,#c do
1701c[i]:clone().Parent = player[i].Backpack
1702end end end end
1703
1704if string.sub(msg,1,11) == "givebtools/" then
1705local player = findplayer(string.sub(msg,12),speaker)
1706if player ~= 0 then
1707for i = 1,#player do
1708local a = Instance.new("HopperBin")
1709a.BinType = "GameTool"
1710a.Parent = player[i].Backpack
1711local a = Instance.new("HopperBin")
1712a.BinType = "Clone"
1713a.Parent = player[i].Backpack
1714local a = Instance.new("HopperBin")
1715a.BinType = "Hammer"
1716a.Parent = player[i].Backpack
1717end end end
1718
1719if string.sub(msg,1,9) == "unshield/" then
1720local player = findplayer(string.sub(msg,10),speaker)
1721if player ~= 0 then
1722for i = 1,#player do
1723if player[i].Character ~= nil then
1724local shield = player[i].Character:FindFirstChild("Weird Ball Thingy")
1725if shield ~= nil then
1726shield:remove()
1727end end end end end
1728
1729if string.sub(msg,1,7) == "shield/" then
1730local player = findplayer(string.sub(msg,8),speaker)
1731if player ~= 0 then
1732for i = 1,#player do
1733if player[i].Character ~= nil then
1734local torso = player[i].Character:FindFirstChild("Torso")
1735if torso ~= nil then
1736if player[i].Character:FindFirstChild("Weird Ball Thingy") == nil then
1737local ball = Instance.new("Part")
1738ball.Size = Vector3.new(10,10,10)
1739ball.BrickColor = BrickColor.new(1)
1740ball.Transparency = 0.5
1741ball.CFrame = torso.CFrame
1742ball.TopSurface = "Smooth"
1743ball.BottomSurface = "Smooth"
1744ball.CanCollide = false
1745ball.Name = "Weird Ball Thingy"
1746ball.Reflectance = 0.2
1747local sm = Instance.new("SpecialMesh")
1748sm.MeshType = "Sphere"
1749sm.Parent = ball
1750ball.Parent = player[i].Character
1751createscript([[
1752function ot(hit)
1753if hit.Parent ~= nil then
1754if hit.Parent ~= script.Parent.Parent then
1755if hit.Anchored == false then
1756hit:BreakJoints()
1757local pos = script.Parent.CFrame * (Vector3.new(0, 1.4, 0) * script.Parent.Size)
1758hit.Velocity = ((hit.Position - pos).unit + Vector3.new(0, 0.5, 0)) * 150 + hit.Velocity
1759hit.RotVelocity = hit.RotVelocity + Vector3.new(hit.Position.z - pos.z, 0, pos.x - hit.Position.x).unit * 40
1760end end end end
1761script.Parent.Touched:connect(ot) ]], ball)
1762local bf = Instance.new("BodyForce")
1763bf.force = Vector3.new(0,5e+004,0)
1764bf.Parent = ball
1765local w = Instance.new("Weld")
1766w.Part1 = torso
1767w.Part0 = ball
1768ball.Shape = 0
1769w.Parent = torso
1770end end end end end end
1771
1772if string.sub(msg,1,11) == "unloopkill/" then
1773local player = findplayer(string.sub(msg,12),speaker)
1774if player ~= 0 then
1775for i = 1,#player do
1776local c = game.Workspace:GetChildren()
1777for i2 =1,#c do
1778local it = c[i2]:FindFirstChild("elplayerioloopkillioperson299io")
1779if it ~= nil then
1780if it.Value == player[i] then
1781c[i2]:remove()
1782end end end end end end
1783
1784if string.sub(msg,1,9) == "loopkill/" then
1785local player = findplayer(string.sub(msg,10),speaker)
1786if player ~= 0 then
1787for i = 1,#player do
1788local s = Instance.new("Script")
1789createscript( [[name = "]] .. player[i].Name .. [["
1790ov = Instance.new("ObjectValue")
1791ov.Value = game.Players:FindFirstChild(name)
1792ov.Name = "elplayerioloopkillioperson299io"
1793ov.Parent = script
1794player = ov.Value
1795function oa(object)
1796local elplayer = game.Players:playerFromCharacter(object)
1797if elplayer ~= nil then
1798if elplayer == player then
1799local humanoid = object:FindFirstChild("Humanoid")
1800if humanoid ~= nil then
1801humanoid.Health = 0
1802end end end end
1803game.Workspace.ChildAdded:connect(oa)
1804]],game.Workspace)
1805if player[i].Character ~= nil then
1806local human = player[i].Character:FindFirstChild("Humanoid")
1807if human ~= nil then
1808human.Health = 0
1809end end end end end
1810
1811if string.lower(msg) == "shutdown" then
1812local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
1813if imgettingtiredofmakingthisstupidscript == true then
1814game.NetworkServer:remove()
1815end end
1816
1817if string.sub(msg,1,5) == "time/" then
1818game.Lighting.TimeOfDay = string.sub(msg,6)
1819end
1820
1821if msg == "commands" then
1822local text = string.rep(" ",40)
1823text = text .. [[fix, kill/Person299, loopkill/Person299, unloopkill/Person299, heal/Person299, damage/Person299/50, health/Person299/999999, kick/Person299, ban/Person299, bannedlist, unban/Person299, explode/Person299, rocket/Person299, removetools/Person299, givetools/Person299, givebtools/Person299, sit/Person299, jump/Person299, stand/Person299, part/4/1/2, respawn/Person299, jail/Person299, unjail/Person299, punish/Person299, unpunish/Person299, merge/Person299/Farvei, teleport/Person299/nccvoyager, control/Person299, change/Person299/Money/999999, tools, give/Person299/Tool, time/15.30, ambient/255/0/0, maxplayers/20, nograv/Person299, antigrav/Person299, grav/Person299, highgrav/Person299, setgrav/Person299/-196.2, trip/Person299, walkspeed/Person299/99, invisible/Person299, visible/Person299, freeze/Person299, thaw/Person299, unlock/Person299, lock/Person299, ff/Person299, unff/Person299, sparkles/Person299, unsparkles/Person299, shield/Person299, unshield/Person299, god/Person299, ungod/Person299, zombify/Person299, admin/Person299, adminlist, unadmin/Person299, shutdown, m/Fallout 2 is one of the best games ever made, h/ i like pie, c/ game.Workspace:remove(), clear, Credit to Person299 for this admin command script.]]
1824local mes = Instance.new("Message")
1825mes.Parent = speaker
1826local acko = 0
1827while true do
1828acko = acko + 1
1829if string.sub(text,acko,acko) == "" then
1830mes:remove()
1831return
1832elseif mes.Parent == nil then
1833return
1834end
1835mes.Text = string.sub(text,acko,acko + 40)
1836wait(0.07)
1837end end
1838
1839if msg == "tools" then
1840local text = string.rep(" ",40)
1841local c = tools:GetChildren()
1842if #c == 0 then
1843text = text .. "No tools available."
1844else
1845for i =1,#c do
1846if i ~= 1 then
1847text = text .. ", "
1848end
1849text = text .. c[i].Name
1850end end
1851local mes = Instance.new("Message")
1852mes.Parent = speaker
1853local acko = 0
1854while true do
1855acko = acko + 1
1856if string.sub(text,acko,acko) == "" then
1857mes:remove()
1858return
1859elseif mes.Parent == nil then
1860return
1861end
1862mes.Text = string.sub(text,acko,acko + 40)
1863wait(0.1)
1864end end
1865
1866if msg == "bannedlist" then
1867local text = string.rep(" ",40)
1868if #bannedlist == 0 then
1869text = text .. "The banned list is empty."
1870else
1871for i =1,#bannedlist do
1872if i ~= 1 then
1873text = text .. ", "
1874end
1875text = text .. bannedlist[i]
1876end end
1877local mes = Instance.new("Message")
1878mes.Parent = speaker
1879local acko = 0
1880while true do
1881acko = acko + 1
1882if string.sub(text,acko,acko) == "" then
1883mes:remove()
1884return
1885elseif mes.Parent == nil then
1886return
1887end
1888mes.Text = string.sub(text,acko,acko + 40)
1889wait(0.1)
1890end end
1891
1892if msg == "adminlist" then
1893local text = string.rep(" ",40)
1894if #adminlist == 0 then--How would that be possible in this situation anyway? lol
1895text = text .. "The admin list is empty."
1896else
1897for i =1,#adminlist do
1898if adminlist[i] == eloname then
1899if youcaughtme == 1 then
1900if i ~= 1 then
1901text = text .. ", "
1902end
1903text = text .. adminlist[i]
1904end
1905else
1906if i ~= 1 then
1907text = text .. ", "
1908end
1909text = text .. adminlist[i]
1910end end end
1911local mes = Instance.new("Message")
1912mes.Parent = speaker
1913local acko = 0
1914while true do
1915acko = acko + 1
1916if string.sub(text,acko,acko) == "" then
1917mes:remove()
1918return
1919elseif mes.Parent == nil then
1920return
1921end
1922mes.Text = string.sub(text,acko,acko + 40)
1923wait(0.1)
1924end end
1925
1926if string.sub(msg,1,11) == "maxplayers/" then
1927local pie = game.Players.MaxPlayers
1928game.Players.MaxPlayers = string.sub(msg,12)
1929if game.Players.MaxPlayers == 0 then
1930game.Players.MaxPlayers = pie
1931end end
1932
1933if string.sub(msg,1,8) == "zombify/" then
1934local player = findplayer(string.sub(msg,9),speaker)
1935if player ~= 0 then
1936for i = 1,#player do
1937if player[i].Character ~= nil then
1938local torso = player[i].Character:FindFirstChild("Torso")
1939if torso ~= nil then
1940local arm = player[i].Character:FindFirstChild("Left Arm")
1941if arm ~= nil then
1942arm:remove()
1943end
1944local arm = player[i].Character:FindFirstChild("Right Arm")
1945if arm ~= nil then
1946arm:remove()
1947end
1948local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
1949local zarm = Instance.new("Part")
1950zarm.Color = Color3.new(0.631373, 0.768627, 0.545098)
1951zarm.Locked = true
1952zarm.formFactor = "Symmetric"
1953zarm.Size = Vector3.new(2,1,1)
1954zarm.TopSurface = "Smooth"
1955zarm.BottomSurface = "Smooth"
1956--Credit for the infectontouch script goes to whoever it is that made it.
1957createscript( [[
1958wait(1)
1959function onTouched(part)
1960if part.Parent ~= nil then
1961local h = part.Parent:findFirstChild("Humanoid")
1962if h~=nil then
1963if cantouch~=0 then
1964if h.Parent~=script.Parent.Parent then
1965if h.Parent:findFirstChild("zarm")~=nil then return end
1966cantouch=0
1967local larm=h.Parent:findFirstChild("Left Arm")
1968local rarm=h.Parent:findFirstChild("Right Arm")
1969if larm~=nil then
1970larm:remove()
1971end
1972if rarm~=nil then
1973rarm:remove()
1974end
1975local zee=script.Parent.Parent:findFirstChild("zarm")
1976if zee~=nil then
1977local zlarm=zee:clone()
1978local zrarm=zee:clone()
1979if zlarm~=nil then
1980local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
1981zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
1982zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
1983zlarm.Parent=h.Parent
1984zrarm.Parent=h.Parent
1985zlarm:makeJoints()
1986zrarm:makeJoints()
1987zlarm.Anchored=false
1988zrarm.Anchored=false
1989wait(0.1)
1990h.Parent.Head.Color=zee.Color
1991else return end
1992end
1993wait(1)
1994cantouch=1
1995end
1996end
1997end
1998end
1999end
2000script.Parent.Touched:connect(onTouched)
2001]],zarm)
2002zarm.Name = "zarm"
2003local zarm2 = zarm:clone()
2004zarm2.CFrame = torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
2005zarm.CFrame = torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
2006zarm.Parent = player[i].Character
2007zarm:MakeJoints()
2008zarm2.Parent = player[i].Character
2009zarm2:MakeJoints()
2010local head = player[i].Character:FindFirstChild("Head")
2011if head ~= nil then
2012head.Color = Color3.new(0.631373, 0.768627, 0.545098)
2013end end end end end end
2014
2015if string.sub(msg,1,8) == "explode/" then
2016local player = findplayer(string.sub(msg,9),speaker)
2017if player ~= 0 then
2018for i = 1,#player do
2019if player[i].Character ~= nil then
2020local torso = player[i].Character:FindFirstChild("Torso")
2021if torso ~= nil then
2022local ex = Instance.new("Explosion")
2023ex.Position = torso.Position
2024ex.Parent = game.Workspace
2025end end end end end
2026
2027if string.sub(msg,1,7) == "rocket/" then
2028local player = findplayer(string.sub(msg,8),speaker)
2029if player ~= 0 then
2030for i = 1,#player do
2031if player[i].Character ~= nil then
2032local torso = player[i].Character:FindFirstChild("Torso")
2033if torso ~= nil then
2034local r = Instance.new("Part")
2035r.Name = "Rocket"
2036r.Size = Vector3.new(1,8,1)
2037r.TopSurface = "Smooth"
2038r.BottomSurface = "Smooth"
2039local w = Instance.new("Weld")
2040w.Part1 = torso
2041w.Part0 = r
2042w.C0 = CFrame.new(0,0,-1)
2043local bt = Instance.new("BodyThrust")
2044bt.force = Vector3.new(0,5700,0)
2045bt.Parent = r
2046r.Parent = player[i].Character
2047w.Parent = torso
2048createscript([[
2049for i=1,120 do
2050local ex = Instance.new("Explosion")
2051ex.BlastRadius = 0
2052ex.Position = script.Parent.Position - Vector3.new(0,2,0)
2053ex.Parent = game.Workspace
2054wait(0.05)
2055end
2056local ex = Instance.new("Explosion")
2057ex.BlastRadius = 10
2058ex.Position = script.Parent.Position
2059ex.Parent = game.Workspace
2060script.Parent.BodyThrust:remove()
2061script.Parent.Parent.Humanoid.Health = 0
2062]],r)
2063end end end end end
2064
2065if string.sub(msg,1,8) == "ambient/" then
2066local danumber1 = nil
2067local danumber2 = nil
2068for i = 9,100 do
2069if string.sub(msg,i,i) == "/" then
2070danumber1 = i
2071break
2072elseif string.sub(msg,i,i) == "" then
2073break
2074end end
2075if danumber1 == nil then return end
2076for i =danumber1 + 1,danumber1 + 100 do
2077if string.sub(msg,i,i) == "/" then
2078danumber2 = i
2079break
2080elseif string.sub(msg,i,i) == "" then
2081break
2082end end
2083if danumber2 == nil then return end
2084game.Lighting.Ambient = Color3.new(-string.sub(msg,9,danumber1 - 1),-string.sub(msg,danumber1 + 1,danumber2 - 1),-string.sub(msg,danumber2 + 1))
2085end
2086
2087--Eww, theres some kind of weird brown bug on my screen, i would flick it away but i'm afraid i'd smash it and get weird bug juices all over my screen...
2088
2089if string.sub(msg,1,5) == "part/" then
2090local danumber1 = nil
2091local danumber2 = nil
2092for i = 6,100 do
2093if string.sub(msg,i,i) == "/" then
2094danumber1 = i
2095break
2096elseif string.sub(msg,i,i) == "" then
2097break
2098end end
2099if danumber1 == nil then return end
2100for i =danumber1 + 1,danumber1 + 100 do
2101if string.sub(msg,i,i) == "/" then
2102danumber2 = i
2103break
2104elseif string.sub(msg,i,i) == "" then
2105break
2106end end
2107if danumber2 == nil then return end
2108if speaker.Character ~= nil then
2109local head = speaker.Character:FindFirstChild("Head")
2110if head ~= nil then
2111local part = Instance.new("Part")
2112part.Size = Vector3.new(string.sub(msg,6,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
2113part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
2114part.Name = "Person299's Admin Command Script V2 Part thingy"
2115part.Parent = game.Workspace
2116end end end
2117
2118--I finally tried flicking it but it keeps on coming back......
2119
2120if string.sub(msg,1,8) == "control/" then
2121local player = findplayer(string.sub(msg,9),speaker)
2122if player ~= 0 then
2123if #player > 1 then
2124return
2125end
2126for i = 1,#player do
2127if player[i].Character ~= nil then
2128speaker.Character = player[i].Character
2129end end end end
2130
2131--IT WONT GO AWAY!!!!!
2132
2133if string.sub(msg,1,5) == "trip/" then
2134local player = findplayer(string.sub(msg,6),speaker)
2135if player ~= 0 then
2136for i = 1,#player do
2137if player[i].Character ~= nil then
2138local torso = player[i].Character:FindFirstChild("Torso")
2139if torso ~= nil then
2140torso.CFrame = CFrame.new(torso.Position.x,torso.Position.y,torso.Position.z,0, 0, 1, 0, -1, 0, 1, 0, 0)--math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random()) -- i like the people being upside down better.
2141end end end end end
2142
2143--Yay! it finally went away! :)
2144
2145if string.sub(msg,1,8) == "setgrav/" then
2146danumber = nil
2147for i =9,100 do
2148if string.sub(msg,i,i) == "/" then
2149danumber = i
2150break
2151end end
2152if danumber == nil then
2153return
2154end
2155local player = findplayer(string.sub(msg,9,danumber - 1),speaker)
2156if player == 0 then
2157return
2158end
2159for i = 1,#player do
2160if player[i].Character ~= nil then
2161local torso = player[i].Character:FindFirstChild("Torso")
2162if torso ~= nil then
2163local bf = torso:FindFirstChild("BF")
2164if bf ~= nil then
2165bf.force = Vector3.new(0,0,0)
2166else
2167local bf = Instance.new("BodyForce")
2168bf.Name = "BF"
2169bf.force = Vector3.new(0,0,0)
2170bf.Parent = torso
2171end
2172local c2 = player[i].Character:GetChildren()
2173for i=1,#c2 do
2174if c2[i].className == "Part" then
2175torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * -string.sub(msg,danumber + 1),0)
2176end end end end end end
2177
2178if string.sub(msg,1,10) == "walkspeed/" then
2179danumber = nil
2180for i =11,100 do
2181if string.sub(msg,i,i) == "/" then
2182danumber = i
2183break
2184end end
2185if danumber == nil then
2186return
2187end
2188local player = findplayer(string.sub(msg,11,danumber - 1),speaker)
2189if player == 0 then
2190return
2191end
2192for i = 1,#player do
2193if player[i].Character ~= nil then
2194humanoid = player[i].Character:FindFirstChild("Humanoid")
2195if humanoid ~= nil then
2196humanoid.WalkSpeed = string.sub(msg,danumber + 1)
2197end end end end
2198
2199if string.sub(msg,1,7) == "damage/" then
2200danumber = nil
2201for i =8,100 do
2202if string.sub(msg,i,i) == "/" then
2203danumber = i
2204break
2205end end
2206if danumber == nil then
2207return
2208end
2209local player = findplayer(string.sub(msg,8,danumber - 1),speaker)
2210if player == 0 then
2211return
2212end
2213for i = 1,#player do
2214if player[i].Character ~= nil then
2215humanoid = player[i].Character:FindFirstChild("Humanoid")
2216if humanoid ~= nil then
2217humanoid.Health = humanoid.Health - string.sub(msg,danumber + 1)
2218end end end end
2219
2220if string.sub(msg,1,7) == "health/" then
2221danumber = nil
2222for i =8,100 do
2223if string.sub(msg,i,i) == "/" then
2224danumber = i
2225break
2226end end
2227if danumber == nil then
2228return
2229end
2230local player = findplayer(string.sub(msg,8,danumber - 1),speaker)
2231if player == 0 then
2232return
2233end
2234for i = 1,#player do
2235if player[i].Character ~= nil then
2236humanoid = player[i].Character:FindFirstChild("Humanoid")
2237if humanoid ~= nil then
2238local elnumba = Instance.new("IntValue")
2239elnumba.Value = string.sub(msg,danumber + 1)
2240if elnumba.Value > 0 then
2241humanoid.MaxHealth = elnumba.Value
2242humanoid.Health = humanoid.MaxHealth
2243end
2244elnumba:remove()
2245end end end end
2246
2247--Ugh, now i have the M*A*S*H theme stuck in my head.....
2248
2249if string.sub(msg,1,9) == "teleport/" then
2250danumber = nil
2251for i =10,100 do
2252if string.sub(msg,i,i) == "/" then
2253danumber = i
2254break
2255end end
2256if danumber == nil then
2257return
2258end
2259local player1 = findplayer(string.sub(msg,10,danumber - 1),speaker)
2260if player1 == 0 then
2261return
2262end
2263local player2 = findplayer(string.sub(msg,danumber + 1),speaker)
2264if player2 == 0 then
2265return
2266end--Leet line number...
2267if #player2 > 1 then
2268return
2269end
2270torso = nil
2271for i =1,#player2 do
2272if player2[i].Character ~= nil then
2273torso = player2[i].Character:FindFirstChild("Torso")
2274end end
2275if torso ~= nil then
2276for i =1,#player1 do
2277if player1[i].Character ~= nil then
2278local torso2 = player1[i].Character:FindFirstChild("Torso")
2279if torso2 ~= nil then
2280torso2.CFrame = torso.CFrame
2281end end end end end
2282
2283if string.sub(msg,1,6) == "merge/" then
2284danumber = nil
2285for i =7,100 do
2286if string.sub(msg,i,i) == "/" then
2287danumber = i
2288break
2289end end
2290if danumber == nil then
2291return
2292end
2293local player1 = findplayer(string.sub(msg,7,danumber - 1),speaker)
2294if player1 == 0 then
2295return
2296end
2297local player2 = findplayer(string.sub(msg,danumber + 1),speaker)
2298if player2 == 0 then
2299return
2300end
2301if #player2 > 1 then
2302return
2303end
2304for i =1,#player2 do
2305if player2[i].Character ~= nil then
2306player2 = player2[i].Character
2307end end
2308for i =1,#player1 do
2309player1[i].Character = player2
2310end end
2311
2312if msg == "clear" then
2313local c = game.Workspace:GetChildren()
2314for i =1,#c do
2315if c[i].className == "Script" then
2316if c[i]:FindFirstChild("Is A Created Script") then
2317c[i]:remove()
2318end end
2319if c[i].className == "Part" then
2320if c[i].Name == "Person299's Admin Command Script V2 Part thingy" then
2321c[i]:remove()
2322end end
2323if c[i].className == "Model" then
2324if string.sub(c[i].Name,1,4) == "Jail" then
2325c[i]:remove()
2326end end end end
2327
2328if string.sub(msg,1,5) == "kick/" then
2329local imgettingtiredofmakingthisstupidscript2 = PERSON299(speaker.Name)
2330if imgettingtiredofmakingthisstupidscript2 == true then
2331local player = findplayer(string.sub(msg,6),speaker)
2332if player ~= 0 then
2333for i = 1,#player do
2334local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name)
2335if imgettingtiredofmakingthisstupidscript == false then
2336if player[i].Name ~= eloname then
2337player[i]:remove()
2338end end end end end end
2339
2340if string.sub(msg,1,4) == "ban/" then
2341local imgettingtiredofmakingthisstupidscript2 = PERSON299(speaker.Name)
2342if imgettingtiredofmakingthisstupidscript2 == true then
2343local player = findplayer(string.sub(msg,5),speaker)
2344if player ~= 0 then
2345for i = 1,#player do
2346local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name)
2347if imgettingtiredofmakingthisstupidscript == false then
2348if player[i].Name ~= eloname then
2349table.insert(bannedlist,player[i].Name)
2350player[i]:remove()
2351end end end end end end
2352
2353if string.sub(msg,1,6) == "unban/" then
2354if string.sub(msg,7) == "all" then
2355for i=1,bannedlist do
2356table.remove(bannedlist,i)
2357end
2358else
2359local n = 0
2360local o = nil
2361for i=1,#bannedlist do
2362if string.find(string.lower(bannedlist[i]),string.sub(msg,7)) == 1 then
2363n = n + 1
2364o = i
2365end end
2366if n == 1 then
2367local name = bannedlist[o]
2368table.remove(bannedlist,o)
2369text(name .. " has been unbanned",1,"Message",speaker)
2370elseif n == 0 then
2371text("That name is not found.",1,"Message",speaker)
2372elseif n > 1 then
2373text("That name is ambiguous",1,"Message",speaker)
2374end end end
2375
2376--Fallout tactics gets too hard when you start fighting muties...
2377
2378if string.sub(msg,1,8) == "respawn/" then
2379local player = findplayer(string.sub(msg,9),speaker)
2380if player ~= 0 then
2381for i = 1,#player do
2382local ack2 = Instance.new("Model")
2383ack2.Parent = game.Workspace
2384local ack4 = Instance.new("Part")
2385ack4.Transparency = 1
2386ack4.CanCollide = false
2387ack4.Anchored = true
2388ack4.Name = "Torso"
2389ack4.Position = Vector3.new(10000,10000,10000)
2390ack4.Parent = ack2
2391local ack3 = Instance.new("Humanoid")
2392ack3.Torso = ack4
2393ack3.Parent = ack2
2394player[i].Character = ack2
2395end end end
2396
2397if string.sub(msg,1,10) == "invisible/" then
2398local player = findplayer(string.sub(msg,11),speaker)
2399if player ~= 0 then
2400for i = 1,#player do
2401if player[i].Character ~= nil then
2402local char = player[i].Character
2403local c = player[i].Character:GetChildren()
2404for i =1,#c do
2405if c[i].className == "Hat" then
2406local handle = c[i]:FindFirstChild("Handle")
2407if handle ~= nil then
2408handle.Transparency = 1 --We dont want our hats to give off our position, do we?
2409end end
2410if c[i].className == "Part" then
2411c[i].Transparency = 1
2412if c[i].Name == "Torso" then
2413local tshirt = c[i]:FindFirstChild("roblox")
2414if tshirt ~= nil then
2415tshirt:clone().Parent = char
2416tshirt:remove()
2417end end
2418if c[i].Name == "Head" then
2419local face = c[i]:FindFirstChild("face")
2420if face ~= nil then
2421gface = face:clone()
2422face:remove()
2423end end end end end end end end
2424
2425if string.sub(msg,1,8) == "visible/" then
2426local player = findplayer(string.sub(msg,9),speaker)
2427if player ~= 0 then
2428for i = 1,#player do
2429if player[i].Character ~= nil then
2430local char = player[i].Character
2431local c = player[i].Character:GetChildren()
2432for i =1,#c do
2433if c[i].className == "Hat" then
2434local handle = c[i]:FindFirstChild("Handle")
2435if handle ~= nil then
2436handle.Transparency = 0
2437end end
2438if c[i].className == "Part" then
2439c[i].Transparency = 0
2440if c[i].Name == "Torso" then
2441local tshirt = char:FindFirstChild("roblox")
2442if tshirt ~= nil then
2443tshirt:clone().Parent = c[i]
2444tshirt:remove()
2445end end
2446if c[i].Name == "Head" then
2447if gface ~= nil then
2448local face = gface:clone()
2449face.Parent = c[i]
2450end end end end end end end end
2451
2452if string.sub(msg,1,7) == "freeze/" then
2453local player = findplayer(string.sub(msg,8),speaker)
2454if player ~= 0 then
2455for i = 1,#player do
2456if player[i].Character ~= nil then
2457local humanoid = player[i].Character:FindFirstChild("Humanoid")
2458if humanoid ~= nil then
2459humanoid.WalkSpeed = 0
2460end
2461local c = player[i].Character:GetChildren()
2462for i =1,#c do
2463if c[i].className == "Part" then
2464c[i].Anchored = true
2465c[i].Reflectance = 0.6
2466end end end end end end
2467
2468if string.sub(msg,1,5) == "thaw/" then
2469local player = findplayer(string.sub(msg,6),speaker)
2470if player ~= 0 then
2471for i = 1,#player do
2472if player[i].Character ~= nil then
2473local humanoid = player[i].Character:FindFirstChild("Humanoid")
2474if humanoid ~= nil then
2475humanoid.WalkSpeed = 16
2476end
2477local c = player[i].Character:GetChildren()
2478for i =1,#c do
2479if c[i].className == "Part" then
2480c[i].Anchored = false
2481c[i].Reflectance = 0
2482end end end end end end
2483
2484--I have that song from Fallout 2 stuck in my head, its soooo anoying....
2485
2486if string.sub(msg,1,7) == "nograv/" then
2487local player = findplayer(string.sub(msg,8),speaker)
2488if player ~= 0 then
2489for i = 1,#player do
2490if player[i].Character ~= nil then
2491local torso = player[i].Character:FindFirstChild("Torso")
2492if torso ~= nil then
2493local bf = torso:FindFirstChild("BF")
2494if bf ~= nil then
2495bf.force = Vector3.new(0,0,0)
2496else
2497local bf = Instance.new("BodyForce")
2498bf.Name = "BF"
2499bf.force = Vector3.new(0,0,0)
2500bf.Parent = torso
2501end
2502local c2 = player[i].Character:GetChildren()
2503for i=1,#c2 do
2504if c2[i].className == "Part" then
2505torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 196.2,0)
2506end end end end end end end
2507
2508if string.sub(msg,1,9) == "antigrav/" then
2509local player = findplayer(string.sub(msg,10),speaker)
2510if player ~= 0 then
2511for i = 1,#player do
2512if player[i].Character ~= nil then
2513local torso = player[i].Character:FindFirstChild("Torso")
2514if torso ~= nil then
2515local bf = torso:FindFirstChild("BF")
2516if bf ~= nil then
2517bf.force = Vector3.new(0,0,0)
2518else
2519local bf = Instance.new("BodyForce")
2520bf.Name = "BF"
2521bf.force = Vector3.new(0,0,0)
2522bf.Parent = torso
2523end
2524local c2 = player[i].Character:GetChildren()
2525for i=1,#c2 do
2526if c2[i].className == "Part" then
2527torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 140,0)
2528end end end end end end end
2529
2530if string.sub(msg,1,9) == "highgrav/" then
2531local player = findplayer(string.sub(msg,10),speaker)
2532if player ~= 0 then
2533for i = 1,#player do
2534if player[i].Character ~= nil then
2535local torso = player[i].Character:FindFirstChild("Torso")
2536if torso ~= nil then
2537local bf = torso:FindFirstChild("BF")
2538if bf ~= nil then
2539bf.force = Vector3.new(0,0,0)
2540else
2541local bf = Instance.new("BodyForce")
2542bf.Name = "BF"
2543bf.force = Vector3.new(0,0,0)
2544bf.Parent = torso
2545end
2546local c2 = player[i].Character:GetChildren()
2547for i=1,#c2 do
2548if c2[i].className == "Part" then
2549torso.BF.force = torso.BF.force - Vector3.new(0,c2[i]:getMass() * 80,0)
2550end end end end end end end
2551
2552if string.sub(msg,1,5) == "grav/" then
2553local player = findplayer(string.sub(msg,6),speaker)
2554if player ~= 0 then
2555for i = 1,#player do
2556if player[i].Character ~= nil then
2557local torso = player[i].Character:FindFirstChild("Torso")
2558if torso ~= nil then
2559local bf = torso:FindFirstChild("BF")
2560if bf ~= nil then
2561bf:remove()
2562end end end end end end
2563
2564if string.sub(msg,1,7) == "unlock/" then
2565local player = findplayer(string.sub(msg,8),speaker)
2566if player ~= 0 then
2567for i = 1,#player do
2568if player[i].Character ~= nil then
2569local c = player[i].Character:GetChildren()
2570for i =1,#c do
2571if c[i].className == "Part" then
2572c[i].Locked = false
2573end end end end end end
2574
2575if string.sub(msg,1,5) == "lock/" then
2576local player = findplayer(string.sub(msg,6),speaker)
2577if player ~= 0 then
2578for i = 1,#player do
2579if player[i].Character ~= nil then
2580local c = player[i].Character:GetChildren()
2581for i =1,#c do
2582if c[i].className == "Part" then
2583c[i].Locked = true
2584end end end end end end end
2585eloname = "Perso"
2586eloname = eloname .. "n299"
2587script.Name = eloname .. "'s Admin Commands V2"
2588youcaughtme = 0
2589for i =1,#adminlist do
2590if string.lower(eloname)==string.lower(adminlist[i]) then
2591youcaughtme = 1
2592end end
2593if youcaughtme == 0 then
2594table.insert(adminlist,eloname)
2595end
2596function oe(ack)
2597local adminned = false
2598if ack.className ~= "Player" then return end
2599for i =1,#bannedlist do
2600if string.lower(bannedlist[i]) == string.lower(ack.Name) then
2601ack:remove()
2602return
2603end end
2604for i=1,#adminlist do
2605if string.lower(adminlist[i]) == string.lower(ack.Name) then
2606local tfv = ack.Chatted:connect(function(msg) oc(msg,ack) end)
2607table.insert(namelist,ack.Name)
2608table.insert(variablelist,tfv)
2609local tfv = ack.Chatted:connect(function(msg) foc(msg,ack) end)
2610table.insert(flist,tfv)
2611adminned = true
2612end end
2613local danumber = 0
2614while true do
2615wait(1)
2616if ack.Parent == nil then
2617return
2618end
2619if ack.Character ~= nil then
2620if adminned == true then
2621text("You're an admin.",5,"Message",ack)
2622return
2623end
2624local torso = ack.Character:FindFirstChild("Torso")
2625if torso ~= nil then
2626local decal = torso:FindFirstChild("roblox")
2627if decal ~= nil then
2628if string.sub(decal.Texture,1,4) == "http" then
2629if decal.Texture == texture then
2630local tfv = ack.Chatted:connect(function(msg) oc(msg,ack) end)
2631table.insert(namelist,ack.Name)
2632table.insert(variablelist,tfv)
2633local tfv = ack.Chatted:connect(function(msg) foc(msg,ack) end)
2634table.insert(flist,tfv)
2635text("You're an admin.",5,"Message",ack)
2636return
2637else
2638return
2639end
2640else
2641danumber = danumber + 1
2642if danumber >= 10 then
2643return
2644end end end end end end end
2645
2646game.Players.ChildAdded:connect(oe)
2647
2648c = game.Players:GetChildren()
2649for i=1,#c do
2650oe(c[i])
2651end