kaualima12

gfhdsddfhgya

Sep 12th, 2019
389
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = owner
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. Player = owner
  88. script.Parent = Player.PlayerGui
  89. cannotify = true
  90. function message(msg)
  91. if cannotify then
  92. cannotify = false
  93. local messagesound = Instance.new("Sound", workspace)
  94. messagesound.SoundId = "rbxassetid://187873574"
  95. messagesound.Volume = 5.999
  96. messagesound:Play()
  97. game.Debris:AddItem(messagesound, messagesound.TimeLength)
  98. if owner.Character then
  99. if owner.Character:FindFirstChild("HumanoidRootPart") then
  100. local pos1 = math.random(-5,5)
  101. local pos2 = math.random(-5,5)
  102. local model = Instance.new("Model", owner.Character)
  103. model.Name = [[(Anti-Skid v4 Shibe edition)
  104. ]]..msg
  105. local human0 = Instance.new("Humanoid", model)
  106. human0.Name = "MessageHuman0id"
  107. human0.MaxHealth = 0
  108. human0.Health = 0
  109. local part = Instance.new("Part", model)
  110. part.Size = Vector3.new(0,0,0)
  111. part.BrickColor = BrickColor.Random()
  112. part.Material = Enum.Material.ForceField
  113. part:BreakJoints()
  114. part.CanCollide = false
  115. local dogemesh = Instance.new("SpecialMesh",part)
  116. dogemesh.MeshId = "http://www.roblox.com/asset/?id=151778863"
  117. dogemesh.TextureId = "http://www.roblox.com/asset/?id=151778895"
  118. part.CFrame = owner.Character.HumanoidRootPart.CFrame
  119. part.Name = "Head"
  120. local bodyposition = Instance.new("BodyPosition", part)
  121. bodyposition.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  122. bodyposition.Position = owner.Character.HumanoidRootPart.Position
  123. local function spinandpos()
  124. while wait() do
  125. if owner.Character:FindFirstChild("HumanoidRootPart") then
  126. bodyposition.Position = owner.Character:FindFirstChild("HumanoidRootPart").Position + Vector3.new(pos1,0,pos2)
  127. end
  128. part.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(0.02,0.02,0.02)
  129. end
  130. end
  131. local function resize()
  132. while wait() and part.Size.x < 1.5 do
  133. part.Size = part.Size + Vector3.new(0.05,0.05,0.05)
  134. end
  135. wait(4)
  136. for i = 1,30 do
  137. part.Size = part.Size + Vector3.new(0.05,0.05,0.05)
  138. part.Transparency = part.Transparency + 0.015
  139. wait()
  140. end
  141. model:destroy()
  142. end
  143. local function let()
  144. wait(0.5)
  145. cannotify = true
  146. end
  147. spawn(let)
  148. spawn(spinandpos)
  149. spawn(resize)
  150. end
  151. end
  152. end
  153. end
  154. function punishplayer(character)
  155. if not character:FindFirstChild("pwned") then
  156. Instance.new("BoolValue", character).Name = "pwned"
  157. local punishrandom = math.random(1,4)
  158. for i,v in pairs(character:GetChildren()) do
  159. if v.ClassName == "Sound" then
  160. v:destroy()
  161. end
  162. for q,w in pairs(v:GetChildren()) do
  163. if w.ClassName == "Sound" and w.Name ~= "JevilTheme" then
  164. w:destroy()
  165. end
  166. end
  167. end
  168. if punishrandom == 1 then
  169. for i = 1,20 do
  170. for q,w in pairs(character:GetChildren()) do
  171. if w.ClassName == "Part" then
  172. w.Transparency = w.Transparency + 0.05
  173. end
  174. if w.ClassName == "Accessory" then
  175. if w:FindFirstChild("Handle") then
  176. w.Handle.Transparency = w.Handle.Transparency + 0.05
  177. end
  178. end
  179. if w.Name == "Head" then
  180. if w:FindFirstChildOfClass("Decal") then
  181. w:FindFirstChildOfClass("Decal").Transparency = w:FindFirstChildOfClass("Decal").Transparency + 0.05
  182. end
  183. end
  184. end
  185. wait()
  186. end
  187. for q,w in pairs(character:GetChildren()) do
  188. if w.ClassName == "Part" or w.ClassName == "Accessory" then
  189. w:destroy()
  190. end
  191. end
  192. elseif punishrandom == 2 then
  193. character:FindFirstChildOfClass("Humanoid").WalkSpeed = 0
  194. character:FindFirstChildOfClass("Humanoid").JumpPower = 0
  195. local function addweld()
  196. if character:FindFirstChild("Torso") then
  197. local heead = Instance.new("Weld", character.Torso)
  198. heead.Part0 = character.Torso
  199. heead.Part1 = character.Head
  200. heead.C0 = CFrame.new(0,1.5,0)
  201. heead.Name = "HeadWeld"
  202. wait(0.7)
  203. for i = 0,1 , 0.08 do
  204. heead.C0 = heead.C0:lerp(CFrame.new(0,1.5,0.4) * CFrame.fromEulerAnglesXYZ(1.2,0,0),i)
  205. wait()
  206. end
  207. wait(0.7)
  208. while wait() do
  209. heead.C0 = heead.C0 * CFrame.fromEulerAnglesXYZ(0.5,0.5,0.5)
  210. end
  211. elseif character:FindFirstChild("UpperTorso") then
  212. local heead = Instance.new("Weld", character.UpperTorso)
  213. heead.Part0 = character.UpperTorso
  214. heead.Part1 = character.Head
  215. heead.C0 = CFrame.new(0,1.5,0)
  216. heead.Name = "HeadWeld"
  217. wait(0.7)
  218. for i = 0,1 , 0.08 do
  219. heead.C0 = heead.C0:lerp(CFrame.new(0,1.5,0.4) * CFrame.fromEulerAnglesXYZ(1.2,0,0),i)
  220. wait()
  221. end
  222. wait(0.7)
  223. while wait() do
  224. heead.C0 = heead.C0 * CFrame.fromEulerAnglesXYZ(0.5,0.5,0.5)
  225. end
  226. end
  227. end
  228. spawn(addweld)
  229. local banhamma = Instance.new("Part", character)
  230. banhamma.Size = Vector3.new(3, 10, 2)
  231. banhamma:BreakJoints()
  232. banhamma.CFrame = character.Head.CFrame * CFrame.new(0,20,0) * CFrame.fromEulerAnglesXYZ(math.pi/2,0,1)
  233. banhamma.Name = "ban"
  234. banhamma.Transparency = 1
  235. banhamma.Anchored = true
  236. local mesh = Instance.new("SpecialMesh", banhamma)
  237. mesh.MeshId = "http://www.roblox.com/asset/?id=10604848"
  238. mesh.TextureId = "http://www.roblox.com/asset/?id=10605252"
  239. local special = Instance.new("Sound", banhamma)
  240. special.SoundId = "rbxassetid://427090157"
  241. special.Volume = 2
  242. special:Play()
  243. for i = 1,20 do
  244. banhamma.Transparency = banhamma.Transparency - 0.05
  245. wait()
  246. end
  247. local hammertime = Instance.new("Sound", banhamma)
  248. hammertime.SoundId = "rbxassetid://176192087"
  249. hammertime.Volume = 3
  250. hammertime:Play()
  251. wait(1)
  252. if character:FindFirstChild("Head") then
  253. local scream = Instance.new("Sound", character.Head)
  254. scream.SoundId = "rbxassetid://176238381"
  255. scream.Volume = 2
  256. scream:Play()
  257. banhamma.Anchored = false
  258. local angularvel = Instance.new("BodyAngularVelocity", banhamma)
  259. angularvel.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  260. angularvel.AngularVelocity = banhamma.CFrame.rightVector * 20
  261. local touchedban = false
  262. local function touched(part)
  263. if part.Name == "Head" and part.Parent == character then
  264. touchedban = true
  265. local aaaaaaaa = Instance.new("Sound", banhamma)
  266. aaaaaaaa.SoundId = "rbxassetid://147722910"
  267. aaaaaaaa.Volume = 2
  268. aaaaaaaa:Play()
  269. angularvel:Destroy()
  270. banhamma.CanCollide = true
  271. for i,v in pairs(character:GetChildren()) do
  272. if v.ClassName == "Part" and v.Name ~= "ban" or v.ClassName == "Accessory" then
  273. v:destroy()
  274. end
  275. end
  276. end
  277. end
  278. banhamma.Touched:connect(touched)
  279. wait(2)
  280. if not touchedban and character:FindFirstChild("Head") then
  281. banhamma.CFrame = character:FindFirstChild("Head").CFrame
  282. end
  283. end
  284. elseif punishrandom == 3 then
  285. character:BreakJoints()
  286. character:FindFirstChildOfClass("Humanoid").Health = 0
  287. local explo = Instance.new("Explosion", character)
  288. explo.Position = character.Head.Position
  289. explo.BlastPressure = 0
  290. local boom = Instance.new("Sound", character.Head)
  291. boom.SoundId = "rbxassetid://262562442"
  292. boom.Volume = 3
  293. boom:Play()
  294. for i,v in pairs(character:GetChildren()) do
  295. if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  296. local velocity = Instance.new("BodyVelocity", v)
  297. velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  298. velocity.Velocity = Vector3.new(math.random(-60,60),math.random(-60,60),math.random(-60,60))
  299. game.Debris:AddItem(velocity, 0.5)
  300. end
  301. end
  302. wait(2)
  303. if character:FindFirstChild("Head") then
  304. character:FindFirstChild("Head"):destroy()
  305. end
  306. elseif punishrandom == 4 then
  307. character.Head:destroy()
  308. if character:FindFirstChild("HumanoidRootPart") then
  309. local boom = Instance.new("Sound", character.HumanoidRootPart)
  310. boom.SoundId = "rbxassetid://775395533"
  311. boom.Volume = 1.5
  312. boom:Play()
  313. end
  314. end
  315. end
  316. end
  317. function scan()
  318. while wait() do
  319. for i,w in pairs(workspace:GetChildren()) do
  320. if w.ClassName == "Sound" and w.Name ~= "Sound" and not w:FindFirstChild("muted") then
  321. if w.Volume >= 6 then
  322. Instance.new("BoolValue", w).Name = "muted"
  323. local function lolriplmao()
  324. while game:GetService("RunService").Heartbeat:wait() do
  325. w.Volume = 1
  326. end
  327. end
  328. spawn(lolriplmao)
  329. message("Detected loud audio coming from workspace")
  330. end
  331. end
  332. end
  333. for i,v in pairs(game:GetService("Players"):GetChildren()) do
  334. if v.ClassName == "Sound" then
  335. v:destroy()
  336. end
  337. if v.Character then
  338. if not v.Character:FindFirstChild("pwned") then
  339. --ultra instict 2019
  340. if v.Character:FindFirstChild("Hair") then
  341. if v.Character.Hair:FindFirstChild("Mesh") then
  342. if v.Character.Hair.Mesh.MeshId == "rbxassetid://455100513" then
  343. local function uncol()
  344. while game:GetService("RunService").Heartbeat:wait() do
  345. v.Character.Hair.CanCollide = false
  346. end
  347. end
  348. spawn(uncol)
  349. for q,w in pairs(v.Character:GetChildren()) do
  350. if w.Name == "NewPart" then
  351. w.CanCollide = false
  352. end
  353. end
  354. punishplayer(v.Character)
  355. message(v.Name.." has used Ultra Instict.")
  356. end
  357. end
  358. end
  359. --nahid Chara
  360. if v.Character:FindFirstChild("Blob") then
  361. if v.Character:FindFirstChild("Name") then
  362. if v.Character:FindFirstChild("Name"):FindFirstChild("TextLabel") then
  363. v.Character:FindFirstChild("Name").TextLabel.Text = "lol skid"
  364. punishplayer(v.Character)
  365. message(v.Name.." has used nahid Chara/Jevil.")
  366. end
  367. end
  368. end
  369. --star glitcher
  370. if v.Character:FindFirstChild("Head") then
  371. if v.Character.Head:FindFirstChild("ModeName") then
  372. if v.Character.Head:FindFirstChild("ModeName"):FindFirstChildOfClass("TextLabel") then
  373. v.Character.Head:FindFirstChild("ModeName"):FindFirstChildOfClass("TextLabel").Text = "nah get out star skid"
  374. punishplayer(v.Character)
  375. message(v.Name.." has used Star Glitcher.")
  376. end
  377. end
  378. end
  379. if v.Character:FindFirstChildOfClass("Sound") then
  380. if v.Character:FindFirstChildOfClass("Sound").SoundId == "rbxassetid://614032233" or v.Character:FindFirstChildOfClass("Sound").SoundId == "rbxassetid://415898123" or v.Character:FindFirstChildOfClass("Sound").Name == "wrecked" then
  381. punishplayer(v.Character)
  382. message(v.Name.." has used Star Glitcher.")
  383. end
  384. end
  385. ---golden pan
  386. if v.Backpack:FindFirstChild("bluE") then
  387. punishplayer(v.Character)
  388. message(v.Name.." has used the golden pan like a skid")
  389. end
  390. --kitchen gun
  391. if v.Character:FindFirstChild("Part")then
  392. if v.Character:FindFirstChild("Part"):FindFirstChild("GunWeld") then
  393. punishplayer(v.Character)
  394. message(v.Name.." has used kitchen gun what a skid")
  395. end
  396. end
  397. --chain magician(sorry creterisk)
  398. if v.Character:FindFirstChild("Torso") then
  399. if v.Character:FindFirstChild("Torso"):FindFirstChild("Beam") then
  400. punishplayer(v.Character)
  401. message(v.Name.." has probably used chain magician")
  402. end
  403. end
  404.  
  405. --big ban theory
  406. if v.Character:FindFirstChild("Hammer") then
  407. v.Character:FindFirstChild("Hammer"):destroy()
  408. punishplayer(v.Character)
  409. message(v.Name.." probably used Big Ban Theory.")
  410. end
  411. --dual doom
  412. if v.Character:FindFirstChild("Dual Doom") then
  413. v.Character:FindFirstChild("Dual Doom"):destroy()
  414. if v.Character:FindFirstChild("Dual Doom") then
  415. v.Character:FindFirstChild("Dual Doom"):destroy()
  416. end
  417. punishplayer(v.Character)
  418. message(v.Name.." used Dual Doom.")
  419. end
  420. --jevil (im so sorry mrfunnylaughs)
  421. if v.Character:FindFirstChild("Torso") then
  422. if v.Character.Torso:FindFirstChild("JevilTheme") then
  423. v.Character.Torso:FindFirstChild("JevilTheme").SoundId = "rbxassetid://1953695670"
  424. v.Character.Torso:FindFirstChild("JevilTheme").TimePosition = 5
  425. v.Character.Torso:FindFirstChild("JevilTheme"):Play()
  426. punishplayer(v.Character)
  427. message(v.Name.." has used Jevil.")
  428. end
  429. end
  430. --dead gun
  431. if v.Character:FindFirstChild("Torso") then
  432. if v.Character.Torso:FindFirstChild("Sound") then
  433. if v.Character.Torso:FindFirstChild("Sound").SoundId == "rbxassetid://318812395" then
  434. v.Character.Torso:FindFirstChild("Sound").SoundId = "rbxassetid://775395533"
  435. punishplayer(v.Character)
  436. message(v.Name.." has used Dead Gun.")
  437. end
  438. end
  439. end
  440. --banisher guns
  441. if v.Character:FindFirstChild("Adds") then
  442. for _,c in pairs(v.Character:FindFirstChild("Adds"):GetDescendants()) do
  443. if c:IsA("Part") and c.Name == "Eye" then
  444. punishplayer(v.Character)
  445. message(v.Name.." has used a banisher(gear ver one)")
  446. end
  447. end
  448. end
  449. --skid edits with warden hat
  450. if v.Character:FindFirstChild("Hat") then
  451. if v.Character:FindFirstChild("Hat"):FindFirstChild("CylinderMesh") then
  452. punishplayer(v.Character)
  453. message(v.Name.." has used the warden or a skid edit with its hat")
  454. end
  455. end
  456. --deadeye or skid edits with the guns
  457. if v.Character then
  458. for _,c in pairs(v.Character:GetDescendants()) do
  459. if c:IsA("Part") and c.Name == "Eye" and c.Size == Vector3.new(0,0.35,0.41) then
  460. punishplayer(v.Character)
  461. message(v.Name.." has used deadeye or a skid edi with its gun")
  462. end
  463.  
  464. end
  465. end
  466. --fallen anger
  467. if v.Character:FindFirstChild("Gun") and v.Character:FindFirstChild("Halo") then
  468. punishplayer(v.Character)
  469. message(v.Name.." has used fallen anger")
  470. end
  471. --mr bye bye
  472. if v.Character:FindFirstChild("Effects")then
  473. if v.Character:FindFirstChild("Effects"):FindFirstChild("Beartrap") then
  474.  
  475. punishplayer(v.Character)
  476. message(v.Name.." has used mrbyebye")
  477. end
  478. end
  479. --Earthworm sally series
  480. if v.Character:FindFirstChild("OofHead") then
  481. punishplayer(v.Character)
  482. message(v.Name.." has used earthworm sally series what a skid")
  483. end
  484. --banisher infinite
  485. if v.Character:FindFirstChild("Ulta_Caliber") then
  486. punishplayer(v.Character)
  487. message(v.Name.." has used banisher infinite")
  488. end
  489. --uncle defranco
  490. if v.Character:FindFirstChild("WeaponModel") then
  491. if v.Character:FindFirstChild("WeaponModel"):FindFirstChild("Shaft") then
  492. punishplayer(v.Character)
  493. message(v.Name.." has used uncle defranco")
  494. end
  495. end
  496. --Elio Blasio
  497. if v.Character:FindFirstChild("Part") then
  498. if v.Character:FindFirstChild("Part"):FindFirstChild("SpecialMesh") then
  499. if v.Character:FindFirstChild("Part"):FindFirstChild("SpecialMesh").MeshId == "http://www.roblox.com/asset/?id=181343290" then
  500. punishplayer(v.Character)
  501. message(v.Name.." has used Elio Blasio")
  502.  
  503. end end
  504. end
  505. --guest glitcher
  506. if v.Character:FindFirstChild("wreckeda") then
  507. punishplayer(v.Character)
  508. message(v.Name.." has used Guest Glitcher/Galaxy Glitcher.")
  509. end
  510. --xester
  511. if v.Character:FindFirstChild("Torso") then
  512. if v.Character.Torso:FindFirstChild("doomtheme") then
  513. punishplayer(v.Character)
  514. message(v.Name.." has used Xester.")
  515. end
  516. end
  517. --Spix
  518. if v.PlayerGui:FindFirstChild("pixelrep2") then
  519.  
  520.  
  521.  
  522. punishplayer(v.Character)
  523. message(v.Name.." has probably used SPIX")
  524. end
  525.  
  526. --new dual doom
  527. if v.PlayerGui:FindFirstChild("kick") then
  528. punishplayer(v.Character)
  529. message(v.Name.." has probably used Dual Doom what a skid")
  530. end
  531. --the switcher
  532. if v.Character:FindFirstChild("_status") then
  533. if v.Character["_status"]:FindFirstChildOfClass("TextLabel") then
  534. v.Character["_status"]:FindFirstChildOfClass("TextLabel").Text = "skiddity swooty"
  535. punishplayer(v.Character)
  536. message(v.Name.." has probably used The Switcher or any op script.")
  537. end
  538. end
  539. --chaotic glicher
  540. if v.Character:FindFirstChild("_status") then
  541. if v.Character["_status"]:FindFirstChild("TextLabel") then
  542. if string.sub(v.Character["_status"]:FindFirstChild("TextLabel").Text,1,5) == "Lunar" then
  543. v.Character["_status"]:FindFirstChild("TextLabel").Text = "rip chaotic lol"
  544. punishplayer(v.Character)
  545. message(v.Name.." has used Chaotic Glicher.")
  546. end
  547. end
  548. end
  549. end
  550. end
  551. end
  552. end
  553. end
  554. spawn(scan)
  555. function commands(chat)
  556. if string.sub(chat, 1,5) == ",shut" then
  557. local ply = game:GetService("Players"):FindFirstChild(string.sub(chat, 7))
  558. if ply then
  559. if ply.Name == "Rufus14" then
  560. message("get out")
  561. punishplayer(owner.Character)
  562. else
  563. if ply.Character then
  564. punishplayer(ply.Character)
  565. message("Punished "..ply.Name..".")
  566. else
  567. message("Player didnt spawn yet.")
  568. end
  569. end
  570. else
  571. message("Cannot find the player named '"..string.sub(chat, 10).."'.")
  572. end
  573. end
  574. if string.sub(chat, 1,10) == ",unsandbox" then
  575. local ply = game:GetService("Players"):FindFirstChild(string.sub(chat, 12))
  576. if ply then
  577. local lool = Instance.new("BoolValue", ply)
  578. lool.Name = "stopsandboxing"
  579. game.Debris:AddItem(lool, 0.5)
  580. message("Unsandboxed "..ply.Name..".")
  581. else
  582. message("Cannot find the player named '"..string.sub(chat, 12).."'.")
  583. end
  584. end
  585. if string.sub(chat, 1,8) == ",sandbox" then
  586. if string.sub(chat, 10,12) == "all" then
  587. for i,v in pairs(game:GetService("Players"):GetChildren()) do
  588. if v.Character then
  589. local ply = v
  590. modell = Instance.new("Model", workspace:FindFirstChildOfClass("Terrain"))
  591. modell.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
  592. local scamhumanoid = Instance.new("Humanoid", modell)
  593. modell2 = Instance.new("Model", modell)
  594. modell2.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
  595. ply.Character.Parent = modell2
  596. ply.Character:FindFirstChildOfClass("Humanoid").Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
  597. local function checkifnil()
  598. if ply.Character:FindFirstChild("HumanoidRootPart") then
  599. if ply:FindFirstChild("humrootpos") then
  600. ply:FindFirstChild("humrootpos").Value = ply.Character.HumanoidRootPart.CFrame
  601. else
  602. local posnow = Instance.new("CFrameValue", ply)
  603. posnow.Value = ply.Character.HumanoidRootPart.CFrame
  604. posnow.Name = "humrootpos"
  605. end
  606. end
  607. while wait() and not ply:FindFirstChild("stopsandboxing") do
  608. if ply.Character then
  609. if ply.Character:FindFirstChild("HumanoidRootPart") then
  610. if ply:FindFirstChild("humrootpos") then
  611. ply:FindFirstChild("humrootpos").Value = ply.Character.HumanoidRootPart.CFrame
  612. else
  613. local posnow = Instance.new("CFrameValue", ply)
  614. posnow.Value = ply.Character.HumanoidRootPart.CFrame
  615. posnow.Name = "humrootpos"
  616. end
  617. end
  618. end
  619. if ply.Character.Parent == nil or modell.Parent == nil or modell2.Parent == nil then
  620. ply:LoadCharacter()
  621. while not ply.Character do
  622. game:GetService("RunService").Heartbeat:wait()
  623. end
  624. ply.Character.HumanoidRootPart.CFrame = ply:FindFirstChild("humrootpos").Value
  625. wait()
  626. modell = Instance.new("Model", workspace:FindFirstChildOfClass("Terrain"))
  627. modell.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
  628. local scamhumanoid = Instance.new("Humanoid", modell)
  629. modell2 = Instance.new("Model", modell)
  630. modell2.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
  631. ply.Character.Parent = modell2
  632. ply.Character:FindFirstChildOfClass("Humanoid").Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
  633. end
  634. end
  635. print("stopped")
  636. ply:LoadCharacter()
  637. while not ply.Character do
  638. game:GetService("RunService").Heartbeat:wait()
  639. end
  640. ply.Character.HumanoidRootPart.CFrame = ply:FindFirstChild("humrootpos").Value
  641. ply:FindFirstChild("humrootpos"):destroy()
  642. end
  643. spawn(checkifnil)
  644. message("Separated every player from workspace.")
  645. end
  646. end
  647. else
  648. local ply = game:GetService("Players"):FindFirstChild(string.sub(chat, 10))
  649. if ply then
  650. if ply.Character then
  651. modell = Instance.new("Model", workspace:FindFirstChildOfClass("Terrain"))
  652. modell.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
  653. local scamhumanoid = Instance.new("Humanoid", modell)
  654. modell2 = Instance.new("Model", modell)
  655. modell2.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
  656. ply.Character.Parent = modell2
  657. ply.Character:FindFirstChildOfClass("Humanoid").Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
  658. local function checkifnil()
  659. if ply.Character:FindFirstChild("HumanoidRootPart") then
  660. if ply:FindFirstChild("humrootpos") then
  661. ply:FindFirstChild("humrootpos").Value = ply.Character.HumanoidRootPart.CFrame
  662. else
  663. local posnow = Instance.new("CFrameValue", ply)
  664. posnow.Value = ply.Character.HumanoidRootPart.CFrame
  665. posnow.Name = "humrootpos"
  666. end
  667. end
  668. while wait() and not ply:FindFirstChild("stopsandboxing") do
  669. if ply.Character then
  670. if ply.Character:FindFirstChild("HumanoidRootPart") then
  671. if ply:FindFirstChild("humrootpos") then
  672. ply:FindFirstChild("humrootpos").Value = ply.Character.HumanoidRootPart.CFrame
  673. else
  674. local posnow = Instance.new("CFrameValue", ply)
  675. posnow.Value = ply.Character.HumanoidRootPart.CFrame
  676. posnow.Name = "humrootpos"
  677. end
  678. end
  679. end
  680. if ply.Character.Parent == nil or modell.Parent == nil or modell2.Parent == nil then
  681. ply:LoadCharacter()
  682. while not ply.Character do
  683. game:GetService("RunService").Heartbeat:wait()
  684. end
  685. ply.Character.HumanoidRootPart.CFrame = ply:FindFirstChild("humrootpos").Value
  686. wait()
  687. modell = Instance.new("Model", workspace:FindFirstChildOfClass("Terrain"))
  688. modell.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
  689. local scamhumanoid = Instance.new("Humanoid", modell)
  690. modell2 = Instance.new("Model", modell)
  691. modell2.Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
  692. ply.Character.Parent = modell2
  693. ply.Character:FindFirstChildOfClass("Humanoid").Name = tostring(math.random(1,999999)) + tostring(math.random(1,999999))
  694. end
  695. end
  696. print("stopped")
  697. ply:LoadCharacter()
  698. while not ply.Character do
  699. game:GetService("RunService").Heartbeat:wait()
  700. end
  701. ply.Character.HumanoidRootPart.CFrame = ply:FindFirstChild("humrootpos").Value
  702. ply:FindFirstChild("humrootpos"):destroy()
  703. end
  704. spawn(checkifnil)
  705. message("Separated "..ply.Name.." from workspace.")
  706. else
  707. message("Player didnt spawn yet.")
  708. end
  709. else
  710. message("Cannot find the player named '"..string.sub(chat, 10).."'.")
  711. end
  712. end
  713. end
  714. end
  715. owner.Chatted:connect(commands)
  716. message("Rufus14's Anti-Skid v4.1(Edit by ByJugator340) executed successfully.")
  717.  
  718. --[[
  719. owner.Character.Archivable = true
  720. local special = Instance.new("Sound", owner.Character.Head)
  721. special.SoundId = "rbxassetid://427090157"
  722. special.Volume = 2
  723. special:Play()
  724. for i = 1,25 do
  725. wait()
  726. for i,v in pairs(owner.Character:GetChildren()) do
  727. if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  728. v.Transparency = v.Transparency + 0.04
  729. end
  730. if v.ClassName == "Accessory" then
  731. local hand = v:FindFirstChild("Handle")
  732. if hand then
  733. hand.Transparency = hand.Transparency + 0.04
  734. end
  735. end
  736. if v.Name == "Head" then
  737. if v:FindFirstChildOfClass("Decal") then
  738. v:FindFirstChildOfClass("Decal").Transparency = v:FindFirstChildOfClass("Decal").Transparency + 0.04
  739. end
  740. end
  741. end
  742. end
  743. local fakecharacter = owner.Character:Clone()
  744. owner.Character:FindFirstChildOfClass("Humanoid"):destroy()
  745. for i,v in pairs(owner.Character:GetChildren()) do
  746. if v.ClassName ~= "LocalScript" and v.ClassName ~= "Script" then
  747. v:destroy()
  748. end
  749. end
  750. fakecharacter.Parent = owner.Character
  751. fakecharacter.Name = "Remote Controlled "..owner.Name
  752. for i = 1,25 do
  753. wait()
  754. for i,v in pairs(fakecharacter:GetChildren()) do
  755. if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  756. v.Transparency = v.Transparency - 0.04
  757. end
  758. if v.ClassName == "Accessory" then
  759. local hand = v:FindFirstChild("Handle")
  760. if hand then
  761. hand.Transparency = hand.Transparency - 0.04
  762. end
  763. end
  764. if v.Name == "Head" then
  765. if v:FindFirstChildOfClass("Decal") then
  766. v:FindFirstChildOfClass("Decal").Transparency = v:FindFirstChildOfClass("Decal").Transparency - 0.04
  767. end
  768. end
  769. end
  770. end
  771. --]]
Advertisement
Add Comment
Please, Sign In to add comment