Advertisement
raptorpack78

Untitled

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