gray_alli28codesrbx

anti skid v5

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