View difference between Paste ID: sVTeVcDF and d39gi5i1
SHOW: | | - or go back to the newest paste.
1
--By Rufus14
2
--owner = game.Players[script.Parent.Name]
3
script.Parent = game:GetService("ServerScriptService")
4
cannotify = true
5
canragdollkill = true
6
function message(msg)
7
	if cannotify then
8
		local messagesound = Instance.new("Sound", workspace)
9
		messagesound.SoundId = "rbxassetid://651986414"
10
		messagesound.Volume = 5.999
11
		messagesound:Play()
12
		game.Debris:AddItem(messagesound, messagesound.TimeLength)
13
		if owner.Character then
14
			if owner.Character:findFirstChild("HumanoidRootPart") then
15
				local pos1 = math.random(-5,5)
16
				local pos2 = math.random(-5,5)
17
				local model = Instance.new("Model", owner.Character)
18
				model.Name = [[(Anti-Skid v4)
19
				]]..msg
20
				local human0 = Instance.new("Humanoid", model)
21
				human0.Name = "MessageHuman0id"
22
				human0.MaxHealth = 0
23
				human0.Health = 0
24
				local part = Instance.new("Part", model)
25
				part.Size = Vector3.new(0,0,0)
26
				part.BrickColor = BrickColor.Random()
27
				part.Material = "ForceField"
28
				part:BreakJoints()
29
				part.CanCollide = false
30
				part.CFrame = owner.Character.HumanoidRootPart.CFrame
31
				part.Name = "Head"
32
				local bodyposition = Instance.new("BodyPosition", part)
33
				bodyposition.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
34
				bodyposition.Position = owner.Character.HumanoidRootPart.Position
35
				local function spinandpos()
36
					while wait() do
37
						if owner.Character:findFirstChild("HumanoidRootPart") then
38
							bodyposition.Position = owner.Character:findFirstChild("HumanoidRootPart").Position + Vector3.new(pos1,0,pos2)
39
						end
40
						part.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(0.02,0.02,0.02)
41
					end
42
				end
43
				local function resize()
44
					while wait() and part.Size.x < 1.5 do
45
						part.Size = part.Size + Vector3.new(0.05,0.05,0.05)
46
					end
47
					wait(4)
48
					for i = 1,30 do
49
						part.Size = part.Size - Vector3.new(0.05,0.05,0.05)
50
						part.Transparency = part.Transparency + 0.015
51
						wait()
52
					end
53
					model:destroy()
54
				end
55
				spawn(spinandpos)
56
				spawn(resize)
57
			end
58
		end
59
	end
60
end
61
function punishplayer(character)
62
	if not character:findFirstChild("pwned") then
63
		Instance.new("BoolValue", character).Name = "pwned"
64
		local function loopremove()
65
			while wait() do
66
				for i,v in pairs(character:GetChildren()) do
67
					if v.ClassName == "Script" or v.ClassName == "LocalScript" then
68
						v.Disabled = true
69
					end
70
				end
71
			end
72
		end
73
		spawn(loopremove)
74
		local function thotbegone()
75
			local punishrandom = math.random(1,7)
76
			for i,v in pairs(character:GetChildren()) do
77
				if v.ClassName == "Sound" and v.Name ~= "JevilTheme" then
78
					v:destroy()
79
				end
80
				for q,w in pairs(v:GetChildren()) do
81
					if w.ClassName == "Sound" and w.Name ~= "JevilTheme" then
82
						w:destroy()
83
					end
84
				end
85
			end
86
			if punishrandom == 1 then
87
				for i = 1,10 do
88
					for q,w in pairs(character:GetChildren()) do
89
						if w.ClassName == "Part" then
90
							w.Transparency = w.Transparency + 0.1
91
						end
92
						if w.ClassName == "Accessory" then
93
							if w:findFirstChild("Handle") then
94
								w.Handle.Transparency = w.Handle.Transparency + 0.1
95
							end
96
						end
97
						if w.Name == "Head" then
98
							if w:findFirstChildOfClass("Decal") then
99
								w:findFirstChildOfClass("Decal").Transparency = w:findFirstChildOfClass("Decal").Transparency + 0.1
100
							end
101
						end
102
					end
103
					wait()
104
				end
105
				for q,w in pairs(character:GetChildren()) do
106
					if w.ClassName == "Part" or w.ClassName == "Accessory" then
107
						w:destroy()
108
					end
109
				end
110
			elseif punishrandom == 2 then
111
				character:findFirstChildOfClass("Humanoid").WalkSpeed = 0
112
				character:findFirstChildOfClass("Humanoid").JumpPower = 0
113
				local function addweld()
114
					if character:findFirstChild("Torso") then
115
						local heead = Instance.new("Weld", character.Torso)
116
						heead.Part0 = character.Torso
117
						heead.Part1 = character.Head
118
						heead.C0 = CFrame.new(0,1.5,0)
119
						heead.Name = "HeadWeld"
120
						wait(0.7)
121
						for i = 0,1 , 0.08 do
122
							heead.C0 = heead.C0:lerp(CFrame.new(0,1.5,0.4) * CFrame.fromEulerAnglesXYZ(1.2,0,0),i)
123
							wait()
124
						end
125
						wait(0.7)
126
						while wait() do
127
							heead.C0 = heead.C0 * CFrame.fromEulerAnglesXYZ(0.5,0.5,0.5)
128
						end
129
					elseif character:findFirstChild("UpperTorso") then
130
						local heead = Instance.new("Weld", character.UpperTorso)
131
						heead.Part0 = character.UpperTorso
132
						heead.Part1 = character.Head
133
						heead.C0 = CFrame.new(0,1.5,0)
134
						heead.Name = "HeadWeld"
135
						wait(0.7)
136
						for i = 0,1 , 0.08 do
137
							heead.C0 = heead.C0:lerp(CFrame.new(0,1.5,0.4) * CFrame.fromEulerAnglesXYZ(1.2,0,0),i)
138
							wait()
139
						end
140
						wait(0.7)
141
						while wait() do
142
							heead.C0 = heead.C0 * CFrame.fromEulerAnglesXYZ(0.5,0.5,0.5)
143
						end
144
					end
145
				end
146
				spawn(addweld)
147
				local banhamma = Instance.new("Part", character)
148
				banhamma.Size = Vector3.new(3, 10, 2)
149
				banhamma:BreakJoints()
150
				banhamma.CFrame = character.Head.CFrame * CFrame.new(0,20,0) * CFrame.fromEulerAnglesXYZ(math.pi/2,0,1)
151
				banhamma.Name = "ban"
152
				banhamma.Transparency = 1
153
				banhamma.Anchored = true
154
				local mesh = Instance.new("SpecialMesh", banhamma)
155
				mesh.MeshId = "http://www.roblox.com/asset/?id=10604848"
156
				mesh.TextureId = "http://www.roblox.com/asset/?id=10605252"
157
				local special = Instance.new("Sound", banhamma)
158
				special.SoundId = "rbxassetid://427090157"
159
				special.Volume = 2
160
				special:Play()
161
				for i = 1,20 do
162
					banhamma.Transparency = banhamma.Transparency - 0.05
163
					if character:findFirstChildOfClass("Humanoid") then
164
						character:findFirstChildOfClass("Humanoid").JumpPower = 0
165
						character:findFirstChildOfClass("Humanoid").WalkSpeed = 0
166
					end
167
					wait()
168
				end
169
				local hammertime = Instance.new("Sound", banhamma)
170
				hammertime.SoundId = "rbxassetid://176192087"
171
				hammertime.Volume = 3
172
				hammertime:Play()
173
				wait(1)
174
				if character:findFirstChild("Head") then
175
					local scream = Instance.new("Sound", character.Head)
176
					scream.SoundId = "rbxassetid://176238381"
177
					scream.Volume = 2
178
					scream:Play()
179
					banhamma.Anchored = false
180
					local angularvel = Instance.new("BodyAngularVelocity", banhamma)
181
					angularvel.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
182
					angularvel.AngularVelocity = banhamma.CFrame.rightVector * 20
183
					local touchedban = false
184
					local function touched(part)
185
						if part.Name == "Head" and part.Parent == character then
186
							touchedban = true
187
							local aaaaaaaa = Instance.new("Sound", banhamma)
188
							aaaaaaaa.SoundId = "rbxassetid://147722910"
189
							aaaaaaaa.Volume = 2
190
							aaaaaaaa:Play()
191
							angularvel:Destroy()
192
							banhamma.CanCollide = true
193
							for i,v in pairs(character:GetChildren()) do
194
								if v.ClassName == "Part" and v.Name ~= "ban" or v.ClassName == "Accessory" then
195
									v:destroy()
196
								end
197
							end
198
						end
199
					end
200
					banhamma.Touched:connect(touched)
201
					wait(2)
202
					if not touchedban and character:findFirstChild("Head") then
203
						banhamma.CFrame = character:findFirstChild("Head").CFrame
204
					end
205
				end
206
			elseif punishrandom == 3 then
207
				character:BreakJoints()
208
				character:findFirstChildOfClass("Humanoid").Health = 0
209
				local explo = Instance.new("Explosion", character)
210
				explo.Position = character.Head.Position
211
				explo.BlastPressure = 0
212
				local boom = Instance.new("Sound", character.Head)
213
				boom.SoundId = "rbxassetid://262562442"
214
				boom.Volume = 3
215
				boom.Name = "booom"
216
				boom:Play()
217
				for i,v in pairs(character:GetChildren()) do
218
					if v.ClassName == "Part" or v.ClassName == "MeshPart" then
219
						local velocity = Instance.new("BodyVelocity", v)
220
						velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
221
						velocity.Velocity = Vector3.new(math.random(-60,60),math.random(-60,60),math.random(-60,60))
222
						game.Debris:AddItem(velocity, 0.5)
223
					end
224
				end
225
				if canragdollkill then
226
					character:BreakJoints()
227
					ragdollkill(character)
228
				else
229
					if character:findFirstChild("Head") then
230
						wait(2)
231
						character:findFirstChild("Head"):destroy()
232
					end
233
				end
234
			elseif punishrandom == 4 then
235
				character.Head:destroy()
236
				if character:findFirstChild("HumanoidRootPart") then
237
					local boom = Instance.new("Sound", character.HumanoidRootPart)
238
					boom.SoundId = "rbxassetid://775395533"
239
					boom.Volume = 1.5
240
					boom.Name = "chinese"
241
					boom:Play()
242
				end
243
				if canragdollkill then
244
					character:BreakJoints()
245
					ragdollkill(character)
246
				end
247
			elseif punishrandom == 5 then
248
				local hahahahahah = Instance.new("Sound", workspace)
249
				hahahahahah.SoundId = "rbxassetid://807874496"
250
				hahahahahah.Volume = 1.5
251
				hahahahahah:Play()
252
				game.Debris:AddItem(hahahahahah, hahahahahah.TimeLength)
253
				if character:findFirstChild("HumanoidRootPart") then
254
					local humanoidrootpart = Instance.new("Weld", character.HumanoidRootPart)
255
					humanoidrootpart.Part0 = character.HumanoidRootPart
256
					if character:findFirstChild("Torso") then
257
						humanoidrootpart.Part1 = character.Torso
258
					elseif character:findFirstChild("UpperTorso") then
259
						humanoidrootpart.Part1 = character.UpperTorso
260
					end
261
					humanoidrootpart.Name = "HumanoidRootPartWeld"
262
					local function rrreeeeee()
263
						while humanoidrootpart do
264
							humanoidrootpart.C0 = humanoidrootpart.C0 * CFrame.Angles(math.random(-2,2),math.random(-2,2),math.random(-2,2))
265
							wait()
266
						end
267
					end
268
					spawn(rrreeeeee)
269
				end
270
				local function thot()
271
					for i = 1,20 do
272
						for q,w in pairs(character:GetChildren()) do
273
							if w.ClassName == "Part" then
274
								w.Transparency = w.Transparency + 0.05
275
							end
276
							if w.ClassName == "Accessory" then
277
								if w:findFirstChild("Handle") then
278
									w.Handle.Transparency = w.Handle.Transparency + 0.05
279
								end
280
							end
281
							if w.Name == "Head" then
282
								if w:findFirstChildOfClass("Decal") then
283
									w:findFirstChildOfClass("Decal").Transparency = w:findFirstChildOfClass("Decal").Transparency + 0.05
284
								end
285
							end
286
						end
287
						wait()
288
					end
289
					for q,w in pairs(character:GetChildren()) do
290
						if w.ClassName == "Part" or w.ClassName == "Accessory" then
291
							w:destroy()
292
						end
293
					end
294
				end
295
				spawn(thot)
296
			elseif punishrandom == 6 then
297
				for q,w in pairs(character:GetChildren()) do
298
					if w.ClassName == "Part" or w.ClassName == "MeshPart" then
299
						w.Anchored = true
300
					end
301
					if w.Name == "Health" and w.ClassName == "Script" then
302
						w.Disabled = true
303
					end
304
				end
305
				local aaaaaaaaa = Instance.new("Sound", character.Head)
306
				aaaaaaaaa.SoundId = "rbxassetid://3181950107"
307
				aaaaaaaaa.Volume = 3
308
				aaaaaaaaa:Play()
309
				aaaaaaaaa.TimePosition = 2.9
310
				local hydraulicpress = Instance.new("Part", character)
311
				hydraulicpress.Size = Vector3.new(12,6,12)
312
				hydraulicpress.Anchored = true
313
				hydraulicpress.Material = "CorrodedMetal"
314
				hydraulicpress.CFrame = character.Head.CFrame * CFrame.new(0,20,0)
315
				local hydraulicpress2 = Instance.new("Part", character)
316
				hydraulicpress2.Size = Vector3.new(3,1000,3)
317
				hydraulicpress2.Anchored = true
318
				hydraulicpress2.Material = "CorrodedMetal"
319
				hydraulicpress2.CFrame = hydraulicpress.CFrame * CFrame.new(0,hydraulicpress2.Size.y/2,0)
320
				for i = 1,9 do
321
					hydraulicpress2.CFrame = hydraulicpress2.CFrame * CFrame.new(0,-2.4,0)
322
					hydraulicpress.CFrame = hydraulicpress.CFrame * CFrame.new(0,-2.4,0)
323
					game:GetService("RunService").Stepped:wait()
324
				end
325
				if character:findFirstChildOfClass("Humanoid") then
326
					character:findFirstChildOfClass("Humanoid").Health = 0.01
327
				end
328
				wait(3)
329
				character:BreakJoints()
330
			elseif punishrandom == 7 then
331
				local congrats_pleb = Instance.new("Sound", character.Head)
332
				congrats_pleb.SoundId = "rbxassetid://360099761"
333
				congrats_pleb.Volume = 5.999
334
				congrats_pleb.Name = "congratzpleb"
335
				local notorbitalflutesound = Instance.new("Sound", character.Head)
336
				notorbitalflutesound.SoundId = "rbxassetid://225627419"
337
				notorbitalflutesound.Volume = 5.999
338
				notorbitalflutesound.Name = "congratzpleb1"
339
				notorbitalflutesound:Play()
340
				congrats_pleb:Play()
341
				game.Debris:AddItem(notorbitalflutesound, 0.3)
342
				game.Debris:AddItem(congrats_pleb, 3)
343
				-- Farewell Infortality.
344
				-- Version: 2.82
345
				-- Instances:
346
				local ScreenGui = Instance.new("ScreenGui")
347
				game.Debris:AddItem(ScreenGui,2.5)
348
				local h = Instance.new("TextLabel")
349
				--Properties:
350
				ScreenGui.Name = "ąęśżźółń"
351
				ScreenGui.Parent = game:GetService("Players"):findFirstChild(character.Name):findFirstChildOfClass("PlayerGui")
352
				ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
353
				
354
				h.Name = "h ę"
355
				h.Parent = ScreenGui
356
				h.BackgroundColor3 = Color3.new(1, 1, 1)
357
				h.BackgroundTransparency = 1
358
				h.Size = UDim2.new(1, 0, 1, 0)
359
				h.Font = Enum.Font.SourceSansLight
360
				h.TextColor3 = Color3.new(1, 1, 1)
361
				h.TextScaled = true
362
				h.TextSize = 14
363
				h.TextWrapped = true
364
				h.Text = "Congratulations,"
365
				wait(1)
366
				h.Text = "you played yourself."
367
				wait(0.8)
368
				if character:findFirstChild("Head") then
369
					--Converted with ttyyuu12345's model to script plugin v4
370
					local function sandbox(var,func)
371
						local env = getfenv(func)
372
						local newenv = setmetatable({},{
373
							__index = function(self,k)
374
								if k=="script" then
375
									return var
376
								else
377
									return env[k]
378
								end
379
							end,
380
						})
381
						setfenv(func,newenv)
382
						return func
383
					end
384
					local cors = {}
385
					local mas = Instance.new("Model",game:GetService("Lighting"))
386
					local fluuute = Instance.new("Part")
387
					local SpecialMesh1 = Instance.new("SpecialMesh")
388
					fluuute.Name = "wooosh"
389
					fluuute.Parent = mas
390
					fluuute.Anchored = true
391
					fluuute.CFrame = CFrame.new(-9.54999828, 10.7131758, -2.17677665, 1, 0, 0, 0, 0.707106709, 0.707106709, 0, -0.707106709, 0.707106709)
392
					fluuute.Orientation = Vector3.new(-45, 0, 0)
393
					fluuute.Position = Vector3.new(-9.54999828, 10.7131758, -2.17677665)
394
					fluuute.Rotation = Vector3.new(-45, 0, 0)
395
					fluuute.Size = Vector3.new(0.099999927, 2.4000001, 0.0999999568)
396
					fluuute.BottomSurface = Enum.SurfaceType.Smooth
397
					fluuute.TopSurface = Enum.SurfaceType.Smooth
398
					fluuute.FormFactor = Enum.FormFactor.Custom
399
					fluuute.formFactor = Enum.FormFactor.Custom
400
					fluuute.CanCollide = false
401
					SpecialMesh1.Parent = fluuute
402
					SpecialMesh1.MeshId = "rbxassetid://223104924"
403
					SpecialMesh1.Scale = Vector3.new(0.25, 0.25, 0.25)
404
					SpecialMesh1.TextureId = "rbxassetid://223104978"
405
					SpecialMesh1.MeshType = Enum.MeshType.FileMesh
406
					for i,v in pairs(mas:GetChildren()) do
407
						v.Parent = character
408
						pcall(function() v:MakeJoints() end)
409
					end
410
					mas:Destroy()
411
					for i,v in pairs(cors) do
412
						spawn(function()
413
							pcall(v)
414
						end)
415
					end
416
					fluuute.CFrame = character.Head.CFrame * CFrame.new(math.random(-600,600),600,math.random(-600,600))
417
					Instance.new("Fire", fluuute)
418
					local orbitalwoosh = Instance.new("Sound", fluuute)
419
					orbitalwoosh.SoundId = "rbxassetid://97179624"
420
					orbitalwoosh.Volume = 5.999
421
					orbitalwoosh:Play()
422
					orbitalwoosh.Looped = true
423
					orbitalwoosh.PlaybackSpeed = 0.9
424
					local canchase = true
425
					local function flyto()
426
						while game:GetService("RunService").Stepped:wait() and character do
427
							if character:findFirstChild("Head") then
428
								if (character.Head.Position - fluuute.Position).magnitude > 1.5 and canchase then
429
									fluuute.CFrame = CFrame.new(fluuute.Position, character:findFirstChild("Head").Position) * CFrame.Angles(-math.pi/2,0,0)
430
									fluuute.CFrame = fluuute.CFrame * CFrame.new(0,1.5,0)
431
									if fluuute:findFirstChild("ray") then
432
										fluuute:findFirstChild("ray"):destroy()
433
									end
434
									local raye = Ray.new(fluuute.CFrame.p, fluuute.CFrame.upVector * 1000)
435
									local hit, position = workspace:FindPartOnRayWithIgnoreList(raye, {fluuute})
436
									local partte = Instance.new("Part", fluuute)
437
									partte.Anchored = true
438
									partte.CanCollide = false
439
									partte.Material = "Neon"
440
									partte.BrickColor = BrickColor.new("Really red")
441
									partte.Name = "ray"
442
									partte.Size = Vector3.new(0,0,(fluuute.Position - position).magnitude)
443
									partte.CFrame = CFrame.new(fluuute.Position, position) * CFrame.new(0,0,-(fluuute.Position - position).magnitude/2)
444
								else
445
									if character then
446
										if canchase and character:findFirstChild("Head") then
447
											canchase = false
448
											local Sound2 = Instance.new("Sound", workspace)
449
											Sound2.Name = "Explosion"
450
											Sound2.SoundId = "rbxassetid://55224766"
451
											Sound2:Play()
452
											orbitalwoosh:Stop()
453
											fluuute.Transparency = 1
454
											if fluuute:FindFirstChildOfClass("Fire") then
455
												fluuute:FindFirstChildOfClass("Fire"):destroy()
456
											end
457
											game.Debris:AddItem(Sound2, Sound2.TimeLength)
458
											game.Debris:AddItem(fluuute, Sound2.TimeLength)
459
											local boom = Instance.new("Explosion", workspace)
460
											boom.BlastRadius = 0
461
											boom.Position = character.Head.Position
462
											character:BreakJoints()
463
											for i,v in pairs(character:GetChildren()) do
464
												if v.ClassName == "Part" or v.ClassName == "MeshPart" then
465
													v.BrickColor = BrickColor.new("Black")
466
													Instance.new("Fire", v)
467
												end
468
											end
469
											if canragdollkill then
470
												ragdollkill(character)
471
											end
472
										end
473
									end
474
								end
475
							end
476
						end
477
					end
478
					local function higherpitch()
479
						orbitalwoosh.PlaybackSpeed = orbitalwoosh.PlaybackSpeed + 0.2
480
					end
481
					orbitalwoosh.DidLoop:connect(higherpitch)
482
					spawn(flyto)
483
				end
484
			end
485
		end
486
		spawn(thotbegone)
487
	end
488
end
489
function scan()
490
	while wait() do
491
		for i,w in pairs(workspace:GetChildren()) do
492
			if w.ClassName == "Sound" and w.Name ~= "Sound" and not w:findFirstChild("muted") then
493
				if w.Volume >= 6 then
494
					Instance.new("BoolValue", w).Name = "muted"
495
					local function lolriplmao()
496
						while game:GetService("RunService").Stepped:wait() do
497
							w.Volume = 1
498
						end
499
					end
500
					spawn(lolriplmao)
501
					message("Detected loud audio coming from workspace")
502
				end
503
			end
504
		end
505
		for i,v in pairs(game:GetService("Players"):GetChildren()) do
506
			if v.ClassName == "Sound" then
507
				v:destroy()
508
			end
509
			if v.Character then
510
				if not v.Character:findFirstChild("pwned") then
511
					--fat remote
512
					if v.Character:findFirstChild("Remote") then
513
						if v.Character:findFirstChild("Remote"):findFirstChild("Handle") then
514
							if v.Character:findFirstChild("Remote"):findFirstChild("Handle"):findFirstChild("p4") then
515
								v.Character:findFirstChild("Remote"):findFirstChild("Handle"):destroy()
516
								v.Character:findFirstChild("Remote"):destroy()
517
								punishplayer(v.Character)
518
								message(v.Name.." has used fat remote.")
519
							end
520
						end
521
					end
522
					--fat banisher
523
					if v.Character:findFirstChild("Adds") then
524
						v.Character:findFirstChild("Adds"):destroy()
525
						punishplayer(v.Character)
526
						v:LoadCharacter()
527
						message(v.Name.." fat skid has probably used a banisher.")
528
					end
529
					--gay ass eggdog
530
					if v.Character:findFirstChild("EggDog") then
531
						punishplayer(v.Character)
532
						message(v.Name.." has used Egg-Dog script.")
533
					end
534
					--abuse bazooka
535
					if v.Character:findFirstChild("Banzai Bazooka") then
536
						punishplayer(v.Character)
537
						message(v.Name.." has used Banzai Bazooka.")
538
					end
539
					--shini
540
					if v.Character:findFirstChild("Shini-G4-MI") then
541
						punishplayer(v.Character)
542
						message(v.Name.." has used Shini-G4-MI.")
543
					end
544
					--flamingo meme moment
545
					if v.Character:findFirstChild("OofHead") then
546
						punishplayer(v.Character)
547
						message(v.Name.." has used a script from the worm familiy.")
548
					end
549
					--white shiny flying unkillable dominus thing
550
					if v.Character:findFirstChild("Control.mp3") then
551
						punishplayer(v.Character)
552
						v:LoadCharacter()
553
						message(v.Name.." has used a script that has 'Controlmp3'' in it.")
554
					end
555
					--ultra instict 2019
556
					if v.Character:findFirstChild("Hair") then
557
						if v.Character.Hair:findFirstChild("Mesh") then
558
							if v.Character.Hair.Mesh.MeshId == "rbxassetid://455100513" then
559
								local function uncol()
560
									while game:GetService("RunService").Stepped:wait() do
561
										if v.Character:findFirstChild("Hair") then
562
											v.Character.Hair.CanCollide = false
563
										end
564
									end
565
								end
566
								spawn(uncol)
567
								for q,w in pairs(v.Character:GetChildren()) do
568
									if w.Name == "NewPart" then
569
										w.CanCollide = false
570
									end
571
								end
572
								punishplayer(v.Character)
573
								message(v.Name.." has used Ultra Instict.")
574
							end
575
						end
576
					end
577
					--nahid Chara
578
					if v.Character:findFirstChild("Blob") then
579
						if v.Character:findFirstChild("Name") then
580
							if v.Character:findFirstChild("Name"):findFirstChild("TextLabel") then
581
								v.Character:findFirstChild("Name").TextLabel.Text = "lol skid"
582
								punishplayer(v.Character)
583
								message(v.Name.." has used nahid Chara/Jevil.")
584
							end
585
						end
586
					end
587
					--star glitcher
588
					if v.Character:findFirstChild("Head") then
589
						if v.Character.Head:findFirstChild("ModeName") then
590
							if v.Character.Head:findFirstChild("ModeName"):findFirstChildOfClass("TextLabel") then
591
								v.Character.Head:findFirstChild("ModeName"):findFirstChildOfClass("TextLabel").Text = "nah get out star skid"
592
								punishplayer(v.Character)
593
								message(v.Name.." has used Star Glitcher.")
594
							end
595
						end
596
					end
597
					if v.Character:findFirstChildOfClass("Sound") then
598
						if v.Character:findFirstChildOfClass("Sound").SoundId == "rbxassetid://614032233" or v.Character:findFirstChildOfClass("Sound").SoundId == "rbxassetid://415898123" or v.Character:findFirstChildOfClass("Sound").Name == "wrecked" then
599
							punishplayer(v.Character)
600
							message(v.Name.." has used Star Glitcher.")
601
						end
602
					end
603
					--big ban theory
604
					if v.Character:findFirstChild("Hammer") then
605
						v.Character:findFirstChild("Hammer"):destroy()
606
						punishplayer(v.Character)
607
						message(v.Name.." probably used Big Ban Theory.")
608
					end
609
					--the sun is a deadly laser
610
					if v.Character:findFirstChild("Sun") then
611
						v.Character:findFirstChild("Sun"):destroy()
612
						punishplayer(v.Character)
613
						message(v.Name.." used The Sun is a Deadly Laser.")
614
					end
615
					--dual doom
616
					if v.Character:findFirstChild("Dual Doom") then
617
						v.Character:findFirstChild("Dual Doom"):destroy()
618
						if v.Character:findFirstChild("Dual Doom") then
619
							v.Character:findFirstChild("Dual Doom"):destroy()
620
						end
621
						punishplayer(v.Character)
622
						message(v.Name.." used Dual Doom.")
623
					end
624
					--jevil
625
					if v.Character:findFirstChild("Torso") then
626
						if v.Character.Torso:findFirstChild("JevilTheme") then
627
							v.Character.Torso:findFirstChild("JevilTheme").SoundId = "rbxassetid://1953695670"
628
							v.Character.Torso:findFirstChild("JevilTheme").TimePosition = 5
629
							v.Character.Torso:findFirstChild("JevilTheme"):Play()
630
							punishplayer(v.Character)
631
							message(v.Name.." has used Jevil.")
632
						end
633
					end
634
					--dead gun
635
					if v.Character:findFirstChild("Torso") then
636
						if v.Character.Torso:findFirstChild("Sound") then
637
							if v.Character.Torso:findFirstChild("Sound").SoundId == "rbxassetid://318812395" then
638
								v.Character.Torso:findFirstChild("Sound").SoundId = "rbxassetid://775395533"
639
								punishplayer(v.Character)
640
								message(v.Name.." has used Dead Gun.")
641
							end
642
						end
643
					end
644
					--guest glitcher
645
					if v.Character:findFirstChild("wreckeda") then
646
						punishplayer(v.Character)
647
						message(v.Name.." has used Guest Glitcher/Galaxy Glitcher.")
648
					end
649
					--xester
650
					if v.Character:findFirstChild("Head") then
651
						if v.Character.Head:findFirstChild("eyo1") then
652
							punishplayer(v.Character)
653
							message(v.Name.." has used Xester.")
654
						end
655
					end
656
					--the switcher
657
					if v.Character:findFirstChild("_status") then
658
						if v.Character["_status"]:findFirstChildOfClass("TextLabel") then
659
							v.Character["_status"]:findFirstChildOfClass("TextLabel").Text = "epic skid moment woooooo"
660
							punishplayer(v.Character)
661
							message(v.Name.." has used an auto added annoying script.")
662
						end
663
					end
664
					--chaotic glicher
665
					if v.Character:findFirstChild("_status") then
666
						if v.Character["_status"]:findFirstChild("TextLabel") then
667
							if string.sub(v.Character["_status"]:findFirstChild("TextLabel").Text,1,5) == "Lunar" then
668
								v.Character["_status"]:findFirstChild("TextLabel").Text = "rip chaotic lol"
669
								punishplayer(v.Character)
670
								message(v.Name.." has used Chaotic Glicher.")
671
							end
672
						end
673
					end
674
				end
675
			end
676
		end
677
	end
678
end
679
spawn(scan)
680
function commands(chat)
681
	if string.sub(chat, 1,8) == ",ragdoll" then
682
		if string.sub(chat, 10,11) == "on" then
683
			canragdollkill = true
684
			message("Ragdoll on!")
685
		end
686
		if string.sub(chat, 10,12) == "off" then
687
			message("Ragdoll off!")
688
			canragdollkill = false
689
		end
690
	end
691
	if string.sub(chat, 1,7) == ",notify" then
692
		if string.sub(chat, 9,10) == "on" then
693
			cannotify = true
694
			message("Notifications on!")
695
		end
696
		if string.sub(chat, 9,11)--[[ << coincidence?]] == "off" then
697
			message("Notifications off!")
698
			cannotify = false
699
		end
700
	end
701
	if string.sub(chat, 1,5) == ",stop" then
702
		local ply = game:GetService("Players"):findFirstChild(string.sub(chat, 7))
703
		if ply then
704
			if ply.Name == "Rufus14" then
705
				message("get out")
706
				punishplayer(owner.Character)
707
			else
708
				if ply.Character then
709
					punishplayer(ply.Character)
710
					message("Punished "..ply.Name..".")
711
				else
712
					message("Player isnt even spawned.")
713
				end
714
			end
715
		else
716
			message("Cannot find the player named '"..string.sub(chat, 10).."'.")
717
		end
718
	end
719
	if string.sub(chat, 1,10) == ",unsandbox" then
720
		local ply = game:GetService("Players"):findFirstChild(string.sub(chat, 12))
721
		if ply then
722
			local lool = Instance.new("BoolValue", ply)
723
			lool.Name = "stopsandboxing"
724
			game.Debris:AddItem(lool, 0.5)
725
			message("Unsandboxed "..ply.Name..".")
726
		else
727
			message("Cannot find the player named '"..string.sub(chat, 12).."'.")
728
		end
729
	end
730
	if string.sub(chat, 1,8) == ",sandbox" then
731
		if string.sub(chat, 10,12) == "all" then
732
			for i,v in pairs(game:GetService("Players"):GetChildren()) do
733
				if v.Character then
734
					local ply = v
735
					modell = Instance.new("Model", workspace:FindFirstChildOfClass("Terrain"))
736
					modell.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
737
					local scamhumanoid = Instance.new("Humanoid", modell)
738
					modell2 = Instance.new("Model", modell)
739
					modell2.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
740
					ply.Character.Parent = modell2
741
					ply.Character:findFirstChildOfClass("Humanoid").Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
742
					local function checkifnil()
743
						if ply.Character:findFirstChild("HumanoidRootPart") then
744
							if ply:findFirstChild("humrootpos") then
745
								ply:findFirstChild("humrootpos").Value = ply.Character.HumanoidRootPart.CFrame
746
							else
747
								local posnow = Instance.new("CFrameValue", ply)
748
								posnow.Value = ply.Character.HumanoidRootPart.CFrame
749
								posnow.Name = "humrootpos"
750
							end
751
						end
752
						while wait() and not ply:findFirstChild("stopsandboxing") do
753
							if ply.Character then
754
								if ply.Character:findFirstChild("HumanoidRootPart") then
755
									if ply:findFirstChild("humrootpos") then
756
										ply:findFirstChild("humrootpos").Value = ply.Character.HumanoidRootPart.CFrame
757
									else
758
										local posnow = Instance.new("CFrameValue", ply)
759
										posnow.Value = ply.Character.HumanoidRootPart.CFrame
760
										posnow.Name = "humrootpos"
761
									end
762
								end
763
							end
764
							if ply.Character.Parent == nil or modell.Parent == nil or modell2.Parent == nil then
765
								ply:LoadCharacter()
766
								while not ply.Character do
767
									game:GetService("RunService").Stepped:wait()
768
								end
769
								ply.Character.HumanoidRootPart.CFrame = ply:findFirstChild("humrootpos").Value
770
								wait()
771
								modell = Instance.new("Model", workspace:FindFirstChildOfClass("Terrain"))
772
								modell.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
773
								local scamhumanoid = Instance.new("Humanoid", modell)
774
								modell2 = Instance.new("Model", modell)
775
								modell2.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
776
								ply.Character.Parent = modell2
777
								ply.Character:findFirstChildOfClass("Humanoid").Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
778
							end
779
						end
780
						print("stopped")
781
						ply:LoadCharacter()
782
						while not ply.Character do
783
							game:GetService("RunService").Stepped:wait()
784
						end
785
						ply.Character.HumanoidRootPart.CFrame = ply:findFirstChild("humrootpos").Value
786
						ply:findFirstChild("humrootpos"):destroy()
787
					end
788
					spawn(checkifnil)
789
					message("Separated every player from workspace.")
790
				end
791
			end
792
		else
793
			local ply = game:GetService("Players"):findFirstChild(string.sub(chat, 10))
794
			if ply then
795
				if ply.Character then
796
					modell = Instance.new("Model", workspace:FindFirstChildOfClass("Terrain"))
797
					modell.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
798
					local scamhumanoid = Instance.new("Humanoid", modell)
799
					modell2 = Instance.new("Model", modell)
800
					modell2.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
801
					ply.Character.Parent = modell2
802
					ply.Character:findFirstChildOfClass("Humanoid").Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
803
					local function checkifnil()
804
						if ply.Character:findFirstChild("HumanoidRootPart") then
805
							if ply:findFirstChild("humrootpos") then
806
								ply:findFirstChild("humrootpos").Value = ply.Character.HumanoidRootPart.CFrame
807
							else
808
								local posnow = Instance.new("CFrameValue", ply)
809
								posnow.Value = ply.Character.HumanoidRootPart.CFrame
810
								posnow.Name = "humrootpos"
811
							end
812
						end
813
						while wait() and not ply:findFirstChild("stopsandboxing") do
814
							if ply.Character then
815
								if ply.Character:findFirstChild("HumanoidRootPart") then
816
									if ply:findFirstChild("humrootpos") then
817
										ply:findFirstChild("humrootpos").Value = ply.Character.HumanoidRootPart.CFrame
818
									else
819
										local posnow = Instance.new("CFrameValue", ply)
820
										posnow.Value = ply.Character.HumanoidRootPart.CFrame
821
										posnow.Name = "humrootpos"
822
									end
823
								end
824
							end
825
							if ply.Character.Parent == nil or modell.Parent == nil or modell2.Parent == nil then
826
								ply:LoadCharacter()
827
								while not ply.Character do
828
									game:GetService("RunService").Stepped:wait()
829
								end
830
								ply.Character.HumanoidRootPart.CFrame = ply:findFirstChild("humrootpos").Value
831
								wait()
832
								modell = Instance.new("Model", workspace:FindFirstChildOfClass("Terrain"))
833
								modell.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
834
								local scamhumanoid = Instance.new("Humanoid", modell)
835
								modell2 = Instance.new("Model", modell)
836
								modell2.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
837
								ply.Character.Parent = modell2
838
								ply.Character:findFirstChildOfClass("Humanoid").Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
839
							end
840
						end
841
						print("stopped")
842
						ply:LoadCharacter()
843
						while not ply.Character do
844
							game:GetService("RunService").Stepped:wait()
845
						end
846
						ply.Character.HumanoidRootPart.CFrame = ply:findFirstChild("humrootpos").Value
847
						ply:findFirstChild("humrootpos"):destroy()
848
					end
849
					spawn(checkifnil)
850
					message("Separated "..ply.Name.." from workspace.")
851
				else
852
					message("Player didnt spawn yet.")
853
				end
854
			else
855
				message("Cannot find the player named '"..string.sub(chat, 10).."'.")
856
			end
857
		end
858
	end
859
end
860
owner.Chatted:connect(commands)
861
function ragdollkill(character)
862
	local victimshumanoid = character:findFirstChildOfClass("Humanoid")
863
	if character:findFirstChild("wooosh") then
864
		character:findFirstChild("wooosh"):destroy()
865
	end
866
	if not character:findFirstChild("UpperTorso") then
867
		character.Archivable = true
868
		for i,v in pairs(character:GetChildren()) do
869
			if v.ClassName == "Sound" then
870
				v:remove()
871
			end
872
			for q,w in pairs(v:GetChildren()) do
873
				if w.ClassName == "Sound" and w.Name ~= "chinese" and w.Name ~= "booom" then
874
					w:remove()
875
				end
876
			end
877
		end
878
		local ragdoll = character:Clone()
879
		ragdoll:findFirstChildOfClass("Humanoid").Health = 0
880
		if ragdoll:findFirstChild("Health") then
881
			if ragdoll:findFirstChild("Health").ClassName == "Script" then
882
				ragdoll:findFirstChild("Health").Disabled = true
883
			end
884
		end
885
		for i,v in pairs(character:GetChildren()) do
886
			if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" then
887
				v:destroy()
888
			end
889
		end
890
		for i,v in pairs(character:GetChildren()) do
891
			if v.ClassName == "Accessory" then
892
				local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
893
				if attachment1 then
894
					for q,w in pairs(character:GetChildren()) do
895
						if w.ClassName == "Part" then
896
							local attachment2 = w:findFirstChild(attachment1.Name)
897
							if attachment2 then
898
								local hinge = Instance.new("HingeConstraint", v.Handle)
899
								hinge.Attachment0 = attachment1
900
								hinge.Attachment1 = attachment2
901
								hinge.LimitsEnabled = true
902
								hinge.LowerAngle = 0
903
								hinge.UpperAngle = 0
904
							end
905
						end
906
					end
907
				end
908
			end
909
		end
910
		ragdoll.Parent = workspace
911
		if ragdoll:findFirstChild("Right Arm") then
912
			local glue = Instance.new("Glue", ragdoll.Torso)
913
			glue.Part0 = ragdoll.Torso
914
			glue.Part1 = ragdoll:findFirstChild("Right Arm")
915
			glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
916
			glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
917
			local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Arm"))
918
			limbcollider.Size = Vector3.new(1.4,1,1)
919
			limbcollider.Shape = "Cylinder"
920
			limbcollider.Transparency = 1
921
			limbcollider.Name = "LimbCollider"
922
			local limbcolliderweld = Instance.new("Weld", limbcollider)
923
			limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Arm")
924
			limbcolliderweld.Part1 = limbcollider
925
			limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
926
		end
927
		if ragdoll:findFirstChild("Left Arm") then
928
			local glue = Instance.new("Glue", ragdoll.Torso)
929
			glue.Part0 = ragdoll.Torso
930
			glue.Part1 = ragdoll:findFirstChild("Left Arm")
931
			glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
932
			glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
933
			local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Arm"))
934
			limbcollider.Size = Vector3.new(1.4,1,1)
935
			limbcollider.Shape = "Cylinder"
936
			limbcollider.Name = "LimbCollider"
937
			limbcollider.Transparency = 1
938
			local limbcolliderweld = Instance.new("Weld", limbcollider)
939
			limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Arm")
940
			limbcolliderweld.Part1 = limbcollider
941
			limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
942
		end
943
		if ragdoll:findFirstChild("Left Leg") then
944
			local glue = Instance.new("Glue", ragdoll.Torso)
945
			glue.Part0 = ragdoll.Torso
946
			glue.Part1 = ragdoll:findFirstChild("Left Leg")
947
			glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
948
			glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
949
			local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Leg"))
950
			limbcollider.Size = Vector3.new(1.4,1,1)
951
			limbcollider.Shape = "Cylinder"
952
			limbcollider.Name = "LimbCollider"
953
			limbcollider.Transparency = 1
954
			local limbcolliderweld = Instance.new("Weld", limbcollider)
955
			limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Leg")
956
			limbcolliderweld.Part1 = limbcollider
957
			limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
958
		end
959
		if ragdoll:findFirstChild("Right Leg") then
960
			local glue = Instance.new("Glue", ragdoll.Torso)
961
			glue.Part0 = ragdoll.Torso
962
			glue.Part1 = ragdoll:findFirstChild("Right Leg")
963
			glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
964
			glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
965
			local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Leg"))
966
			limbcollider.Size = Vector3.new(1.4,1,1)
967
			limbcollider.Shape = "Cylinder"
968
			limbcollider.Name = "LimbCollider"
969
			limbcollider.Transparency = 1
970
			local limbcolliderweld = Instance.new("Weld", limbcollider)
971
			limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Leg")
972
			limbcolliderweld.Part1 = limbcollider
973
			limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
974
		end
975
		if ragdoll:findFirstChild("Head") and ragdoll.Torso:findFirstChild("NeckAttachment") then
976
			local HeadAttachment = Instance.new("Attachment", ragdoll["Head"])
977
			HeadAttachment.Position = Vector3.new(0, -0.5, 0)
978
			local connection = Instance.new('HingeConstraint', ragdoll["Head"])
979
			connection.LimitsEnabled = true
980
			connection.Attachment0 = ragdoll.Torso.NeckAttachment
981
			connection.Attachment1 = HeadAttachment
982
			connection.UpperAngle = 60
983
			connection.LowerAngle = -60
984
		elseif ragdoll:findFirstChild("Head") and not ragdoll.Torso:findFirstChild("NeckAttachment") then
985
			local hedweld = Instance.new("Weld", ragdoll.Torso)
986
			hedweld.Part0 = ragdoll.Torso
987
			hedweld.Part1 = ragdoll.Head
988
			hedweld.C0 = CFrame.new(0,1.5,0)
989
		end
990
		game.Debris:AddItem(ragdoll, 5)
991
		local function aaaalol()
992
			wait(0.2)
993
			local function searchforvelocity(wot)
994
				for i,v in pairs(wot:GetChildren()) do
995
					searchforvelocity(v)
996
					if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
997
						v:destroy()
998
					end
999
				end
1000
			end
1001
			searchforvelocity(ragdoll)
1002
			wait(0.5)
1003
			if ragdoll:findFirstChildOfClass("Humanoid") then
1004
				ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
1005
			end
1006
			if ragdoll:findFirstChild("HumanoidRootPart") then
1007
				ragdoll:findFirstChild("HumanoidRootPart"):destroy()
1008
			end
1009
		end
1010
		spawn(aaaalol)
1011
	elseif character:findFirstChild("UpperTorso") then
1012
		character.Archivable = true
1013
		for i,v in pairs(character:GetChildren()) do
1014
			if v.ClassName == "Sound" then
1015
				v:remove()
1016
			end
1017
			for q,w in pairs(v:GetChildren()) do
1018
				if w.ClassName == "Sound" and w.Name ~= "chinese" and w.Name ~= "booom" then
1019
					w:remove()
1020
				end
1021
			end
1022
		end
1023
		local ragdoll = character:Clone()
1024
		ragdoll:findFirstChildOfClass("Humanoid").Health = 0
1025
		if ragdoll:findFirstChild("Health") then
1026
			if ragdoll:findFirstChild("Health").ClassName == "Script" then
1027
				ragdoll:findFirstChild("Health").Disabled = true
1028
			end
1029
		end
1030
		for i,v in pairs(character:GetChildren()) do
1031
			if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "MeshPart" then
1032
				v:destroy()
1033
			end
1034
		end
1035
		for i,v in pairs(character:GetChildren()) do
1036
			if v.ClassName == "Accessory" then
1037
				local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
1038
				if attachment1 then
1039
					for q,w in pairs(character:GetChildren()) do
1040
						if w.ClassName == "Part" or w.ClassName == "MeshPart" then
1041
							local attachment2 = w:findFirstChild(attachment1.Name)
1042
							if attachment2 then
1043
								local hinge = Instance.new("HingeConstraint", v.Handle)
1044
								hinge.Attachment0 = attachment1
1045
								hinge.Attachment1 = attachment2
1046
								hinge.LimitsEnabled = true
1047
								hinge.LowerAngle = 0
1048
								hinge.UpperAngle = 0
1049
							end
1050
						end
1051
					end
1052
				end
1053
			end
1054
		end
1055
		ragdoll.Parent = workspace
1056
		local Humanoid = ragdoll:findFirstChildOfClass("Humanoid")
1057
		Humanoid.PlatformStand = true
1058
		local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
1059
			local connection = Instance.new('BallSocketConstraint', limb)
1060
			connection.LimitsEnabled = true
1061
			connection.Attachment0 = attachementone
1062
			connection.Attachment1 = attachmenttwo
1063
			connection.TwistLimitsEnabled = true
1064
			connection.TwistLowerAngle = twistlower
1065
			connection.TwistUpperAngle = twistupper
1066
			local limbcollider = Instance.new("Part", limb)
1067
			limbcollider.Size = Vector3.new(0.1,1,1)
1068
			limbcollider.Shape = "Cylinder"
1069
			limbcollider.Transparency = 1
1070
			limbcollider:BreakJoints()
1071
			local limbcolliderweld = Instance.new("Weld", limbcollider)
1072
			limbcolliderweld.Part0 = limb
1073
			limbcolliderweld.Part1 = limbcollider
1074
			limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
1075
		end
1076
		local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
1077
			local connection = Instance.new('HingeConstraint', limb)
1078
			connection.LimitsEnabled = true
1079
			connection.Attachment0 = attachementone
1080
			connection.Attachment1 = attachmenttwo
1081
			connection.LimitsEnabled = true
1082
			connection.LowerAngle = lower
1083
			connection.UpperAngle = upper
1084
			local limbcollider = Instance.new("Part", limb)
1085
			limbcollider.Size = Vector3.new(0.1,1,1)
1086
			limbcollider.Shape = "Cylinder"
1087
			limbcollider.Transparency = 1
1088
			limbcollider:BreakJoints()
1089
			local limbcolliderweld = Instance.new("Weld", limbcollider)
1090
			limbcolliderweld.Part0 = limb
1091
			limbcolliderweld.Part1 = limbcollider
1092
			limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
1093
		end
1094
		if Humanoid.Parent:findFirstChild("Head") then
1095
			HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
1096
			HeadAttachment.Position = Vector3.new(0, -0.5, 0)
1097
		end
1098
		if ragdoll.UpperTorso:findFirstChild("NeckAttachment") then
1099
			makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50)
1100
		end
1101
		makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
1102
		makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180)
1103
		makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
1104
		makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
1105
		--
1106
		makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180)
1107
		makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
1108
		makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
1109
		--
1110
		makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80)
1111
		makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
1112
		makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
1113
		--
1114
		makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80)
1115
		makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
1116
		makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
1117
		for i,v in pairs(Humanoid.Parent:GetChildren()) do
1118
			if v.ClassName == "Accessory" then
1119
				local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
1120
				if attachment1 then
1121
					for q,w in pairs(Humanoid.Parent:GetChildren()) do
1122
						if w.ClassName == "Part" then
1123
							local attachment2 = w:findFirstChild(attachment1.Name)
1124
							if attachment2 then
1125
								local hinge = Instance.new("HingeConstraint", v.Handle)
1126
								hinge.Attachment0 = attachment1
1127
								hinge.Attachment1 = attachment2
1128
								hinge.LimitsEnabled = true
1129
								hinge.LowerAngle = 0
1130
								hinge.UpperAngle = 0
1131
							end
1132
						end
1133
					end
1134
				end
1135
			end
1136
		end
1137
		for i,v in pairs(ragdoll:GetChildren()) do
1138
			for q,w in pairs(v:GetChildren()) do
1139
				if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] then
1140
					w:destroy()
1141
				end
1142
			end
1143
		end
1144
		if ragdoll:findFirstChild("HumanoidRootPart") then
1145
			ragdoll.HumanoidRootPart.Anchored = true
1146
			ragdoll.HumanoidRootPart.CanCollide = false
1147
		end
1148
		if ragdoll:findFirstChildOfClass("Humanoid") then
1149
			ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
1150
		end
1151
		local function waitfordatmoment()
1152
			wait(0.2)
1153
			local function searchforvelocity(wot)
1154
				for i,v in pairs(wot:GetChildren()) do
1155
					searchforvelocity(v)
1156
					if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
1157
						v:destroy()
1158
					end
1159
				end
1160
			end
1161
			searchforvelocity(ragdoll)
1162
		end
1163
		spawn(waitfordatmoment)
1164
		game.Debris:AddItem(ragdoll, 5)
1165
	end
1166
end
1167
print("commands:")
1168
print(",ragdoll on/off - toggles ragdoll death on punishments")
1169
print(",notify on/off - toggles notify bricks")
1170
print(",sandbox (player name) - changes player's parent from workspace to terrain")
1171
print(",unsandbox (player name) - changes player's parent from terrain to workspace")
1172
print(",stop (player name) - manual punishment")
1173
message("Rufus14's Anti-Skid v4 executed successfully. (ADDED MORE COMMANDS AND PUNISHMENTS)")