SHOW:
|
|
- or go back to the newest paste.
1 | - | --By Rufus14 |
1 | + | --By jane12421 |
2 | - | --owner = game.Players[script.Parent.Name] |
2 | + | --owner = game.Players[jane12421] |
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 | --dual doom | |
610 | if v.Character:findFirstChild("Dual Doom") then | |
611 | v.Character:findFirstChild("Dual Doom"):destroy() | |
612 | if v.Character:findFirstChild("Dual Doom") then | |
613 | v.Character:findFirstChild("Dual Doom"):destroy() | |
614 | end | |
615 | punishplayer(v.Character) | |
616 | message(v.Name.." used Dual Doom.") | |
617 | end | |
618 | --jevil | |
619 | if v.Character:findFirstChild("Torso") then | |
620 | if v.Character.Torso:findFirstChild("JevilTheme") then | |
621 | v.Character.Torso:findFirstChild("JevilTheme").SoundId = "rbxassetid://1953695670" | |
622 | v.Character.Torso:findFirstChild("JevilTheme").TimePosition = 5 | |
623 | v.Character.Torso:findFirstChild("JevilTheme"):Play() | |
624 | punishplayer(v.Character) | |
625 | message(v.Name.." has used Jevil.") | |
626 | end | |
627 | end | |
628 | --dead gun | |
629 | if v.Character:findFirstChild("Torso") then | |
630 | if v.Character.Torso:findFirstChild("Sound") then | |
631 | if v.Character.Torso:findFirstChild("Sound").SoundId == "rbxassetid://318812395" then | |
632 | v.Character.Torso:findFirstChild("Sound").SoundId = "rbxassetid://775395533" | |
633 | punishplayer(v.Character) | |
634 | message(v.Name.." has used Dead Gun.") | |
635 | end | |
636 | end | |
637 | end | |
638 | --guest glitcher | |
639 | if v.Character:findFirstChild("wreckeda") then | |
640 | punishplayer(v.Character) | |
641 | message(v.Name.." has used Guest Glitcher/Galaxy Glitcher.") | |
642 | end | |
643 | --xester | |
644 | if v.Character:findFirstChild("Head") then | |
645 | if v.Character.Head:findFirstChild("eyo1") then | |
646 | punishplayer(v.Character) | |
647 | message(v.Name.." has used Xester.") | |
648 | end | |
649 | end | |
650 | --the switcher | |
651 | if v.Character:findFirstChild("_status") then | |
652 | if v.Character["_status"]:findFirstChildOfClass("TextLabel") then | |
653 | v.Character["_status"]:findFirstChildOfClass("TextLabel").Text = "epic skid moment woooooo" | |
654 | punishplayer(v.Character) | |
655 | message(v.Name.." has used an auto added annoying script.") | |
656 | end | |
657 | end | |
658 | --chaotic glicher | |
659 | if v.Character:findFirstChild("_status") then | |
660 | if v.Character["_status"]:findFirstChild("TextLabel") then | |
661 | if string.sub(v.Character["_status"]:findFirstChild("TextLabel").Text,1,5) == "Lunar" then | |
662 | v.Character["_status"]:findFirstChild("TextLabel").Text = "rip chaotic lol" | |
663 | punishplayer(v.Character) | |
664 | message(v.Name.." has used Chaotic Glicher.") | |
665 | end | |
666 | end | |
667 | end | |
668 | end | |
669 | end | |
670 | end | |
671 | end | |
672 | end | |
673 | spawn(scan) | |
674 | function commands(chat) | |
675 | if string.sub(chat, 1,8) == ",ragdoll" then | |
676 | if string.sub(chat, 10,11) == "on" then | |
677 | canragdollkill = true | |
678 | message("Ragdoll on!") | |
679 | end | |
680 | if string.sub(chat, 10,12) == "off" then | |
681 | message("Ragdoll off!") | |
682 | canragdollkill = false | |
683 | end | |
684 | end | |
685 | if string.sub(chat, 1,7) == ",notify" then | |
686 | if string.sub(chat, 9,10) == "on" then | |
687 | cannotify = true | |
688 | message("Notifications on!") | |
689 | end | |
690 | if string.sub(chat, 9,11)--[[ << coincidence?]] == "off" then | |
691 | message("Notifications off!") | |
692 | cannotify = false | |
693 | end | |
694 | end | |
695 | if string.sub(chat, 1,5) == ",stop" then | |
696 | local ply = game:GetService("Players"):findFirstChild(string.sub(chat, 7)) | |
697 | if ply then | |
698 | if ply.Name == "Rufus14" then | |
699 | message("get out") | |
700 | punishplayer(owner.Character) | |
701 | else | |
702 | if ply.Character then | |
703 | punishplayer(ply.Character) | |
704 | message("Punished "..ply.Name..".") | |
705 | else | |
706 | message("Player isnt even spawned.") | |
707 | end | |
708 | end | |
709 | else | |
710 | message("Cannot find the player named '"..string.sub(chat, 10).."'.") | |
711 | end | |
712 | end | |
713 | if string.sub(chat, 1,10) == ",unsandbox" then | |
714 | local ply = game:GetService("Players"):findFirstChild(string.sub(chat, 12)) | |
715 | if ply then | |
716 | local lool = Instance.new("BoolValue", ply) | |
717 | lool.Name = "stopsandboxing" | |
718 | game.Debris:AddItem(lool, 0.5) | |
719 | message("Unsandboxed "..ply.Name..".") | |
720 | else | |
721 | message("Cannot find the player named '"..string.sub(chat, 12).."'.") | |
722 | end | |
723 | end | |
724 | if string.sub(chat, 1,8) == ",sandbox" then | |
725 | if string.sub(chat, 10,12) == "all" then | |
726 | for i,v in pairs(game:GetService("Players"):GetChildren()) do | |
727 | if v.Character then | |
728 | local ply = v | |
729 | modell = Instance.new("Model", workspace:FindFirstChildOfClass("Terrain")) | |
730 | modell.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999)) | |
731 | local scamhumanoid = Instance.new("Humanoid", modell) | |
732 | modell2 = Instance.new("Model", modell) | |
733 | modell2.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999)) | |
734 | ply.Character.Parent = modell2 | |
735 | ply.Character:findFirstChildOfClass("Humanoid").Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999)) | |
736 | local function checkifnil() | |
737 | if ply.Character:findFirstChild("HumanoidRootPart") then | |
738 | if ply:findFirstChild("humrootpos") then | |
739 | ply:findFirstChild("humrootpos").Value = ply.Character.HumanoidRootPart.CFrame | |
740 | else | |
741 | local posnow = Instance.new("CFrameValue", ply) | |
742 | posnow.Value = ply.Character.HumanoidRootPart.CFrame | |
743 | posnow.Name = "humrootpos" | |
744 | end | |
745 | end | |
746 | while wait() and not ply:findFirstChild("stopsandboxing") do | |
747 | if ply.Character then | |
748 | if ply.Character:findFirstChild("HumanoidRootPart") then | |
749 | if ply:findFirstChild("humrootpos") then | |
750 | ply:findFirstChild("humrootpos").Value = ply.Character.HumanoidRootPart.CFrame | |
751 | else | |
752 | local posnow = Instance.new("CFrameValue", ply) | |
753 | posnow.Value = ply.Character.HumanoidRootPart.CFrame | |
754 | posnow.Name = "humrootpos" | |
755 | end | |
756 | end | |
757 | end | |
758 | if ply.Character.Parent == nil or modell.Parent == nil or modell2.Parent == nil then | |
759 | ply:LoadCharacter() | |
760 | while not ply.Character do | |
761 | game:GetService("RunService").Stepped:wait() | |
762 | end | |
763 | ply.Character.HumanoidRootPart.CFrame = ply:findFirstChild("humrootpos").Value | |
764 | wait() | |
765 | modell = Instance.new("Model", workspace:FindFirstChildOfClass("Terrain")) | |
766 | modell.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999)) | |
767 | local scamhumanoid = Instance.new("Humanoid", modell) | |
768 | modell2 = Instance.new("Model", modell) | |
769 | modell2.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999)) | |
770 | ply.Character.Parent = modell2 | |
771 | ply.Character:findFirstChildOfClass("Humanoid").Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999)) | |
772 | end | |
773 | end | |
774 | print("stopped") | |
775 | ply:LoadCharacter() | |
776 | while not ply.Character do | |
777 | game:GetService("RunService").Stepped:wait() | |
778 | end | |
779 | ply.Character.HumanoidRootPart.CFrame = ply:findFirstChild("humrootpos").Value | |
780 | ply:findFirstChild("humrootpos"):destroy() | |
781 | end | |
782 | spawn(checkifnil) | |
783 | message("Separated every player from workspace.") | |
784 | end | |
785 | end | |
786 | else | |
787 | local ply = game:GetService("Players"):findFirstChild(string.sub(chat, 10)) | |
788 | if ply then | |
789 | if ply.Character then | |
790 | modell = Instance.new("Model", workspace:FindFirstChildOfClass("Terrain")) | |
791 | modell.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999)) | |
792 | local scamhumanoid = Instance.new("Humanoid", modell) | |
793 | modell2 = Instance.new("Model", modell) | |
794 | modell2.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999)) | |
795 | ply.Character.Parent = modell2 | |
796 | ply.Character:findFirstChildOfClass("Humanoid").Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999)) | |
797 | local function checkifnil() | |
798 | if ply.Character:findFirstChild("HumanoidRootPart") then | |
799 | if ply:findFirstChild("humrootpos") then | |
800 | ply:findFirstChild("humrootpos").Value = ply.Character.HumanoidRootPart.CFrame | |
801 | else | |
802 | local posnow = Instance.new("CFrameValue", ply) | |
803 | posnow.Value = ply.Character.HumanoidRootPart.CFrame | |
804 | posnow.Name = "humrootpos" | |
805 | end | |
806 | end | |
807 | while wait() and not ply:findFirstChild("stopsandboxing") do | |
808 | if ply.Character then | |
809 | if ply.Character:findFirstChild("HumanoidRootPart") then | |
810 | if ply:findFirstChild("humrootpos") then | |
811 | ply:findFirstChild("humrootpos").Value = ply.Character.HumanoidRootPart.CFrame | |
812 | else | |
813 | local posnow = Instance.new("CFrameValue", ply) | |
814 | posnow.Value = ply.Character.HumanoidRootPart.CFrame | |
815 | posnow.Name = "humrootpos" | |
816 | end | |
817 | end | |
818 | end | |
819 | if ply.Character.Parent == nil or modell.Parent == nil or modell2.Parent == nil then | |
820 | ply:LoadCharacter() | |
821 | while not ply.Character do | |
822 | game:GetService("RunService").Stepped:wait() | |
823 | end | |
824 | ply.Character.HumanoidRootPart.CFrame = ply:findFirstChild("humrootpos").Value | |
825 | wait() | |
826 | modell = Instance.new("Model", workspace:FindFirstChildOfClass("Terrain")) | |
827 | modell.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999)) | |
828 | local scamhumanoid = Instance.new("Humanoid", modell) | |
829 | modell2 = Instance.new("Model", modell) | |
830 | modell2.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999)) | |
831 | ply.Character.Parent = modell2 | |
832 | ply.Character:findFirstChildOfClass("Humanoid").Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999)) | |
833 | end | |
834 | end | |
835 | print("stopped") | |
836 | ply:LoadCharacter() | |
837 | while not ply.Character do | |
838 | game:GetService("RunService").Stepped:wait() | |
839 | end | |
840 | ply.Character.HumanoidRootPart.CFrame = ply:findFirstChild("humrootpos").Value | |
841 | ply:findFirstChild("humrootpos"):destroy() | |
842 | end | |
843 | spawn(checkifnil) | |
844 | message("Separated "..ply.Name.." from workspace.") | |
845 | else | |
846 | message("Player didnt spawn yet.") | |
847 | end | |
848 | else | |
849 | message("Cannot find the player named '"..string.sub(chat, 10).."'.") | |
850 | end | |
851 | end | |
852 | end | |
853 | end | |
854 | owner.Chatted:connect(commands) | |
855 | function ragdollkill(character) | |
856 | local victimshumanoid = character:findFirstChildOfClass("Humanoid") | |
857 | if character:findFirstChild("wooosh") then | |
858 | character:findFirstChild("wooosh"):destroy() | |
859 | end | |
860 | if not character:findFirstChild("UpperTorso") then | |
861 | character.Archivable = true | |
862 | for i,v in pairs(character:GetChildren()) do | |
863 | if v.ClassName == "Sound" then | |
864 | v:remove() | |
865 | end | |
866 | for q,w in pairs(v:GetChildren()) do | |
867 | if w.ClassName == "Sound" and w.Name ~= "chinese" and w.Name ~= "booom" then | |
868 | w:remove() | |
869 | end | |
870 | end | |
871 | end | |
872 | local ragdoll = character:Clone() | |
873 | ragdoll:findFirstChildOfClass("Humanoid").Health = 0 | |
874 | if ragdoll:findFirstChild("Health") then | |
875 | if ragdoll:findFirstChild("Health").ClassName == "Script" then | |
876 | ragdoll:findFirstChild("Health").Disabled = true | |
877 | end | |
878 | end | |
879 | for i,v in pairs(character:GetChildren()) do | |
880 | if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" then | |
881 | v:destroy() | |
882 | end | |
883 | end | |
884 | for i,v in pairs(character:GetChildren()) do | |
885 | if v.ClassName == "Accessory" then | |
886 | local attachment1 = v.Handle:findFirstChildOfClass("Attachment") | |
887 | if attachment1 then | |
888 | for q,w in pairs(character:GetChildren()) do | |
889 | if w.ClassName == "Part" then | |
890 | local attachment2 = w:findFirstChild(attachment1.Name) | |
891 | if attachment2 then | |
892 | local hinge = Instance.new("HingeConstraint", v.Handle) | |
893 | hinge.Attachment0 = attachment1 | |
894 | hinge.Attachment1 = attachment2 | |
895 | hinge.LimitsEnabled = true | |
896 | hinge.LowerAngle = 0 | |
897 | hinge.UpperAngle = 0 | |
898 | end | |
899 | end | |
900 | end | |
901 | end | |
902 | end | |
903 | end | |
904 | ragdoll.Parent = workspace | |
905 | if ragdoll:findFirstChild("Right Arm") then | |
906 | local glue = Instance.new("Glue", ragdoll.Torso) | |
907 | glue.Part0 = ragdoll.Torso | |
908 | glue.Part1 = ragdoll:findFirstChild("Right Arm") | |
909 | glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
910 | glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
911 | local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Arm")) | |
912 | limbcollider.Size = Vector3.new(1.4,1,1) | |
913 | limbcollider.Shape = "Cylinder" | |
914 | limbcollider.Transparency = 1 | |
915 | limbcollider.Name = "LimbCollider" | |
916 | local limbcolliderweld = Instance.new("Weld", limbcollider) | |
917 | limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Arm") | |
918 | limbcolliderweld.Part1 = limbcollider | |
919 | limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0) | |
920 | end | |
921 | if ragdoll:findFirstChild("Left Arm") then | |
922 | local glue = Instance.new("Glue", ragdoll.Torso) | |
923 | glue.Part0 = ragdoll.Torso | |
924 | glue.Part1 = ragdoll:findFirstChild("Left Arm") | |
925 | glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
926 | glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
927 | local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Arm")) | |
928 | limbcollider.Size = Vector3.new(1.4,1,1) | |
929 | limbcollider.Shape = "Cylinder" | |
930 | limbcollider.Name = "LimbCollider" | |
931 | limbcollider.Transparency = 1 | |
932 | local limbcolliderweld = Instance.new("Weld", limbcollider) | |
933 | limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Arm") | |
934 | limbcolliderweld.Part1 = limbcollider | |
935 | limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0) | |
936 | end | |
937 | if ragdoll:findFirstChild("Left Leg") then | |
938 | local glue = Instance.new("Glue", ragdoll.Torso) | |
939 | glue.Part0 = ragdoll.Torso | |
940 | glue.Part1 = ragdoll:findFirstChild("Left Leg") | |
941 | glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
942 | glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
943 | local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Leg")) | |
944 | limbcollider.Size = Vector3.new(1.4,1,1) | |
945 | limbcollider.Shape = "Cylinder" | |
946 | limbcollider.Name = "LimbCollider" | |
947 | limbcollider.Transparency = 1 | |
948 | local limbcolliderweld = Instance.new("Weld", limbcollider) | |
949 | limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Leg") | |
950 | limbcolliderweld.Part1 = limbcollider | |
951 | limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0) | |
952 | end | |
953 | if ragdoll:findFirstChild("Right Leg") then | |
954 | local glue = Instance.new("Glue", ragdoll.Torso) | |
955 | glue.Part0 = ragdoll.Torso | |
956 | glue.Part1 = ragdoll:findFirstChild("Right Leg") | |
957 | glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
958 | glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
959 | local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Leg")) | |
960 | limbcollider.Size = Vector3.new(1.4,1,1) | |
961 | limbcollider.Shape = "Cylinder" | |
962 | limbcollider.Name = "LimbCollider" | |
963 | limbcollider.Transparency = 1 | |
964 | local limbcolliderweld = Instance.new("Weld", limbcollider) | |
965 | limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Leg") | |
966 | limbcolliderweld.Part1 = limbcollider | |
967 | limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0) | |
968 | end | |
969 | if ragdoll:findFirstChild("Head") and ragdoll.Torso:findFirstChild("NeckAttachment") then | |
970 | local HeadAttachment = Instance.new("Attachment", ragdoll["Head"]) | |
971 | HeadAttachment.Position = Vector3.new(0, -0.5, 0) | |
972 | local connection = Instance.new('HingeConstraint', ragdoll["Head"]) | |
973 | connection.LimitsEnabled = true | |
974 | connection.Attachment0 = ragdoll.Torso.NeckAttachment | |
975 | connection.Attachment1 = HeadAttachment | |
976 | connection.UpperAngle = 60 | |
977 | connection.LowerAngle = -60 | |
978 | elseif ragdoll:findFirstChild("Head") and not ragdoll.Torso:findFirstChild("NeckAttachment") then | |
979 | local hedweld = Instance.new("Weld", ragdoll.Torso) | |
980 | hedweld.Part0 = ragdoll.Torso | |
981 | hedweld.Part1 = ragdoll.Head | |
982 | hedweld.C0 = CFrame.new(0,1.5,0) | |
983 | end | |
984 | game.Debris:AddItem(ragdoll, 5) | |
985 | local function aaaalol() | |
986 | wait(0.2) | |
987 | local function searchforvelocity(wot) | |
988 | for i,v in pairs(wot:GetChildren()) do | |
989 | searchforvelocity(v) | |
990 | if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then | |
991 | v:destroy() | |
992 | end | |
993 | end | |
994 | end | |
995 | searchforvelocity(ragdoll) | |
996 | wait(0.5) | |
997 | if ragdoll:findFirstChildOfClass("Humanoid") then | |
998 | ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true | |
999 | end | |
1000 | if ragdoll:findFirstChild("HumanoidRootPart") then | |
1001 | ragdoll:findFirstChild("HumanoidRootPart"):destroy() | |
1002 | end | |
1003 | end | |
1004 | spawn(aaaalol) | |
1005 | elseif character:findFirstChild("UpperTorso") then | |
1006 | character.Archivable = true | |
1007 | for i,v in pairs(character:GetChildren()) do | |
1008 | if v.ClassName == "Sound" then | |
1009 | v:remove() | |
1010 | end | |
1011 | for q,w in pairs(v:GetChildren()) do | |
1012 | if w.ClassName == "Sound" and w.Name ~= "chinese" and w.Name ~= "booom" then | |
1013 | w:remove() | |
1014 | end | |
1015 | end | |
1016 | end | |
1017 | local ragdoll = character:Clone() | |
1018 | ragdoll:findFirstChildOfClass("Humanoid").Health = 0 | |
1019 | if ragdoll:findFirstChild("Health") then | |
1020 | if ragdoll:findFirstChild("Health").ClassName == "Script" then | |
1021 | ragdoll:findFirstChild("Health").Disabled = true | |
1022 | end | |
1023 | end | |
1024 | for i,v in pairs(character:GetChildren()) do | |
1025 | if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "MeshPart" then | |
1026 | v:destroy() | |
1027 | end | |
1028 | end | |
1029 | for i,v in pairs(character:GetChildren()) do | |
1030 | if v.ClassName == "Accessory" then | |
1031 | local attachment1 = v.Handle:findFirstChildOfClass("Attachment") | |
1032 | if attachment1 then | |
1033 | for q,w in pairs(character:GetChildren()) do | |
1034 | if w.ClassName == "Part" or w.ClassName == "MeshPart" then | |
1035 | local attachment2 = w:findFirstChild(attachment1.Name) | |
1036 | if attachment2 then | |
1037 | local hinge = Instance.new("HingeConstraint", v.Handle) | |
1038 | hinge.Attachment0 = attachment1 | |
1039 | hinge.Attachment1 = attachment2 | |
1040 | hinge.LimitsEnabled = true | |
1041 | hinge.LowerAngle = 0 | |
1042 | hinge.UpperAngle = 0 | |
1043 | end | |
1044 | end | |
1045 | end | |
1046 | end | |
1047 | end | |
1048 | end | |
1049 | ragdoll.Parent = workspace | |
1050 | local Humanoid = ragdoll:findFirstChildOfClass("Humanoid") | |
1051 | Humanoid.PlatformStand = true | |
1052 | local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper) | |
1053 | local connection = Instance.new('BallSocketConstraint', limb) | |
1054 | connection.LimitsEnabled = true | |
1055 | connection.Attachment0 = attachementone | |
1056 | connection.Attachment1 = attachmenttwo | |
1057 | connection.TwistLimitsEnabled = true | |
1058 | connection.TwistLowerAngle = twistlower | |
1059 | connection.TwistUpperAngle = twistupper | |
1060 | local limbcollider = Instance.new("Part", limb) | |
1061 | limbcollider.Size = Vector3.new(0.1,1,1) | |
1062 | limbcollider.Shape = "Cylinder" | |
1063 | limbcollider.Transparency = 1 | |
1064 | limbcollider:BreakJoints() | |
1065 | local limbcolliderweld = Instance.new("Weld", limbcollider) | |
1066 | limbcolliderweld.Part0 = limb | |
1067 | limbcolliderweld.Part1 = limbcollider | |
1068 | limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) | |
1069 | end | |
1070 | local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper) | |
1071 | local connection = Instance.new('HingeConstraint', limb) | |
1072 | connection.LimitsEnabled = true | |
1073 | connection.Attachment0 = attachementone | |
1074 | connection.Attachment1 = attachmenttwo | |
1075 | connection.LimitsEnabled = true | |
1076 | connection.LowerAngle = lower | |
1077 | connection.UpperAngle = upper | |
1078 | local limbcollider = Instance.new("Part", limb) | |
1079 | limbcollider.Size = Vector3.new(0.1,1,1) | |
1080 | limbcollider.Shape = "Cylinder" | |
1081 | limbcollider.Transparency = 1 | |
1082 | limbcollider:BreakJoints() | |
1083 | local limbcolliderweld = Instance.new("Weld", limbcollider) | |
1084 | limbcolliderweld.Part0 = limb | |
1085 | limbcolliderweld.Part1 = limbcollider | |
1086 | limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) | |
1087 | end | |
1088 | if Humanoid.Parent:findFirstChild("Head") then | |
1089 | HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head) | |
1090 | HeadAttachment.Position = Vector3.new(0, -0.5, 0) | |
1091 | end | |
1092 | if ragdoll.UpperTorso:findFirstChild("NeckAttachment") then | |
1093 | makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50) | |
1094 | end | |
1095 | makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50) | |
1096 | makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180) | |
1097 | makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60) | |
1098 | makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20) | |
1099 | -- | |
1100 | makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180) | |
1101 | makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60) | |
1102 | makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20) | |
1103 | -- | |
1104 | makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80) | |
1105 | makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60) | |
1106 | makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20) | |
1107 | -- | |
1108 | makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80) | |
1109 | makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60) | |
1110 | makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20) | |
1111 | for i,v in pairs(Humanoid.Parent:GetChildren()) do | |
1112 | if v.ClassName == "Accessory" then | |
1113 | local attachment1 = v.Handle:findFirstChildOfClass("Attachment") | |
1114 | if attachment1 then | |
1115 | for q,w in pairs(Humanoid.Parent:GetChildren()) do | |
1116 | if w.ClassName == "Part" then | |
1117 | local attachment2 = w:findFirstChild(attachment1.Name) | |
1118 | if attachment2 then | |
1119 | local hinge = Instance.new("HingeConstraint", v.Handle) | |
1120 | hinge.Attachment0 = attachment1 | |
1121 | hinge.Attachment1 = attachment2 | |
1122 | hinge.LimitsEnabled = true | |
1123 | hinge.LowerAngle = 0 | |
1124 | hinge.UpperAngle = 0 | |
1125 | end | |
1126 | end | |
1127 | end | |
1128 | end | |
1129 | end | |
1130 | end | |
1131 | for i,v in pairs(ragdoll:GetChildren()) do | |
1132 | for q,w in pairs(v:GetChildren()) do | |
1133 | if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] then | |
1134 | w:destroy() | |
1135 | end | |
1136 | end | |
1137 | end | |
1138 | if ragdoll:findFirstChild("HumanoidRootPart") then | |
1139 | ragdoll.HumanoidRootPart.Anchored = true | |
1140 | ragdoll.HumanoidRootPart.CanCollide = false | |
1141 | end | |
1142 | if ragdoll:findFirstChildOfClass("Humanoid") then | |
1143 | ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true | |
1144 | end | |
1145 | local function waitfordatmoment() | |
1146 | wait(0.2) | |
1147 | local function searchforvelocity(wot) | |
1148 | for i,v in pairs(wot:GetChildren()) do | |
1149 | searchforvelocity(v) | |
1150 | if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then | |
1151 | v:destroy() | |
1152 | end | |
1153 | end | |
1154 | end | |
1155 | searchforvelocity(ragdoll) | |
1156 | end | |
1157 | spawn(waitfordatmoment) | |
1158 | game.Debris:AddItem(ragdoll, 5) | |
1159 | end | |
1160 | end | |
1161 | print("commands:") | |
1162 | print(",ragdoll on/off - toggles ragdoll death on punishments") | |
1163 | print(",notify on/off - toggles notify bricks") | |
1164 | print(",sandbox (player name) - changes player's parent from workspace to terrain") | |
1165 | print(",unsandbox (player name) - changes player's parent from terrain to workspace") | |
1166 | print(",stop (player name) - manual punishment") | |
1167 | message("Rufus14's Anti-Skid v4 executed successfully. (ADDED MORE COMMANDS AND PUNISHMENTS)") |