Advertisement
doryna2281337

Untitled

Aug 17th, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.00 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,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = owner
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local h,t
  72. --Give the server mouse data 30 times every second, but only if the values changed
  73. --If player is not moving their mouse, client won't fire events
  74. while wait(1/30) do
  75. if h~=Mouse.Hit or t~=Mouse.Target then
  76. h,t=Mouse.Hit,Mouse.Target
  77. Event:FireServer({isMouse=true,Target=t,Hit=h})
  78. end
  79. end]==],Player.Character)
  80. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  81. end
  82.  
  83. script.Parent = owner
  84. cannotify = true
  85. function message(msg)
  86. if cannotify then
  87. cannotify = false
  88. local messagesound = Instance.new("Sound", workspace)
  89. messagesound.SoundId = "rbxassetid://2755928629"
  90. messagesound.Volume = 2
  91. messagesound:Play()
  92. game.Debris:AddItem(messagesound, messagesound.TimeLength)
  93. if owner.Character then
  94. if owner.Character:findFirstChild("HumanoidRootPart") then
  95. local pos1 = math.random(-5,5)
  96. local pos2 = math.random(-5,5)
  97. local model = Instance.new("Model", owner.Character)
  98. model.Name = [[(Anti-Skid)
  99. ]]..msg
  100. local human0 = Instance.new("Humanoid", model)
  101. human0.Name = "MessageHuman0id"
  102. human0.MaxHealth = 0
  103. human0.Health = 0
  104. local part = Instance.new("Part", model)
  105. part.Size = Vector3.new(0,0,0)
  106. part.BrickColor = BrickColor.Random()
  107. part.Material = "ForceField"
  108. part:BreakJoints()
  109. part.CanCollide = false
  110. part.CFrame = owner.Character.HumanoidRootPart.CFrame
  111. part.Name = "Head"
  112. local bodyposition = Instance.new("BodyPosition", part)
  113. bodyposition.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  114. bodyposition.Position = owner.Character.HumanoidRootPart.Position
  115. local function spinandpos()
  116. while wait() do
  117. if owner.Character:findFirstChild("HumanoidRootPart") then
  118. bodyposition.Position = owner.Character:findFirstChild("HumanoidRootPart").Position + Vector3.new(pos1,0,pos2)
  119. end
  120. part.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(0.02,0.02,0.02)
  121. end
  122. end
  123. local function resize()
  124. while wait() and part.Size.x < 1.5 do
  125. part.Size = part.Size + Vector3.new(0.025,0.025,0.025)
  126. end
  127. wait(4)
  128. for i = 1,60 do
  129. part.Size = part.Size - Vector3.new(0.025,0.025,0.025)
  130. wait()
  131. end
  132. model:destroy()
  133. cannotify = true
  134. end
  135. spawn(spinandpos)
  136. spawn(resize)
  137. end
  138. end
  139. end
  140. end
  141. function punishplayer(character)
  142. if not character:findFirstChild("pwned") then
  143. Instance.new("BoolValue", character).Name = "pwned"
  144. local punishrandom = math.random(1,3)
  145. for i,v in pairs(character:GetChildren()) do
  146. if v.ClassName == "Sound" then
  147. v:destroy()
  148. end
  149. for q,w in pairs(v:GetChildren()) do
  150. if w.ClassName == "Sound" and w.Name ~= "JevilTheme" then
  151. w:destroy()
  152. end
  153. end
  154. end
  155. if punishrandom == 1 then
  156. for i = 1,20 do
  157. for q,w in pairs(character:GetChildren()) do
  158. if w.ClassName == "Part" then
  159. w.Transparency = w.Transparency + 0.05
  160. end
  161. if w.ClassName == "Accessory" then
  162. if w:findFirstChild("Handle") then
  163. w.Handle.Transparency = w.Handle.Transparency + 0.05
  164. end
  165. end
  166. if w.Name == "Head" then
  167. if w:findFirstChildOfClass("Decal") then
  168. w:findFirstChildOfClass("Decal").Transparency = w:findFirstChildOfClass("Decal").Transparency + 0.05
  169. end
  170. end
  171. end
  172. wait()
  173. end
  174. for q,w in pairs(character:GetChildren()) do
  175. if w.ClassName == "Part" or w.ClassName == "Accessory" then
  176. w:destroy()
  177. end
  178. end
  179. elseif punishrandom == 2 then
  180. character:findFirstChildOfClass("Humanoid").WalkSpeed = 0
  181. character:findFirstChildOfClass("Humanoid").JumpPower = 0
  182. local function addweld()
  183. if character:findFirstChild("Torso") then
  184. local heead = Instance.new("Weld", character.Torso)
  185. heead.Part0 = character.Torso
  186. heead.Part1 = character.Head
  187. heead.C0 = CFrame.new(0,1.5,0)
  188. heead.Name = "HeadWeld"
  189. wait(0.7)
  190. for i = 0,1 , 0.08 do
  191. heead.C0 = heead.C0:lerp(CFrame.new(0,1.5,0.4) * CFrame.fromEulerAnglesXYZ(1.2,0,0),i)
  192. wait()
  193. end
  194. wait(0.7)
  195. while wait() do
  196. heead.C0 = heead.C0 * CFrame.fromEulerAnglesXYZ(0.5,0.5,0.5)
  197. end
  198. elseif character:findFirstChild("UpperTorso") then
  199. local heead = Instance.new("Weld", character.UpperTorso)
  200. heead.Part0 = character.UpperTorso
  201. heead.Part1 = character.Head
  202. heead.C0 = CFrame.new(0,1.5,0)
  203. heead.Name = "HeadWeld"
  204. wait(0.7)
  205. for i = 0,1 , 0.08 do
  206. heead.C0 = heead.C0:lerp(CFrame.new(0,1.5,0.4) * CFrame.fromEulerAnglesXYZ(1.2,0,0),i)
  207. wait()
  208. end
  209. wait(0.7)
  210. while wait() do
  211. heead.C0 = heead.C0 * CFrame.fromEulerAnglesXYZ(0.5,0.5,0.5)
  212. end
  213. end
  214. end
  215. spawn(addweld)
  216. local banhamma = Instance.new("Part", character)
  217. banhamma.Size = Vector3.new(3, 10, 2)
  218. banhamma:BreakJoints()
  219. banhamma.CFrame = character.Head.CFrame * CFrame.new(0,20,0) * CFrame.fromEulerAnglesXYZ(math.pi/2,0,1)
  220. banhamma.Name = "ban"
  221. banhamma.Transparency = 1
  222. banhamma.Anchored = true
  223. local mesh = Instance.new("SpecialMesh", banhamma)
  224. mesh.MeshId = "http://www.roblox.com/asset/?id=10604848"
  225. mesh.TextureId = "http://www.roblox.com/asset/?id=10605252"
  226. local special = Instance.new("Sound", banhamma)
  227. special.SoundId = "rbxassetid://427090157"
  228. special.Volume = 2
  229. special:Play()
  230. for i = 1,20 do
  231. banhamma.Transparency = banhamma.Transparency - 0.05
  232. wait()
  233. end
  234. local hammertime = Instance.new("Sound", banhamma)
  235. hammertime.SoundId = "rbxassetid://176192087"
  236. hammertime.Volume = 3
  237. hammertime:Play()
  238. banhamma.CFrame = character.Head.CFrame * CFrame.new(0,20,0) * CFrame.fromEulerAnglesXYZ(math.pi/2,0,1)
  239. wait(1)
  240. if character:findFirstChild("Head") then
  241. local scream = Instance.new("Sound", character.Head)
  242. scream.SoundId = "rbxassetid://176238381"
  243. scream.Volume = 2
  244. scream:Play()
  245. banhamma.Anchored = false
  246. local angularvel = Instance.new("BodyAngularVelocity", banhamma)
  247. angularvel.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  248. angularvel.AngularVelocity = banhamma.CFrame.rightVector * 20
  249. local touchedban = false
  250. local function touched(part)
  251. if part.Name == "Head" and part.Parent == character then
  252. touchedban = true
  253. local aaaaaaaa = Instance.new("Sound", banhamma)
  254. aaaaaaaa.SoundId = "rbxassetid://147722910"
  255. aaaaaaaa.Volume = 2
  256. aaaaaaaa:Play()
  257. angularvel:Destroy()
  258. banhamma.CanCollide = true
  259. for i,v in pairs(character:GetChildren()) do
  260. if v.ClassName == "Part" and v.Name ~= "ban" or v.ClassName == "Accessory" then
  261. v:destroy()
  262. end
  263. end
  264. end
  265. end
  266. banhamma.Touched:connect(touched)
  267. wait(2)
  268. if not touchedban and character:findFirstChild("Head") then
  269. banhamma.CFrame = character:findFirstChild("Head").CFrame
  270. end
  271. end
  272. elseif punishrandom == 3 then
  273. character:BreakJoints()
  274. character:findFirstChildOfClass("Humanoid").Health = 0
  275. local explo = Instance.new("Explosion", character)
  276. explo.Position = character.Head.Position
  277. explo.BlastPressure = 0
  278. local boom = Instance.new("Sound", character.Head)
  279. boom.SoundId = "rbxassetid://262562442"
  280. boom.Volume = 3
  281. boom:Play()
  282. for i,v in pairs(character:GetChildren()) do
  283. if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  284. local velocity = Instance.new("BodyVelocity", v)
  285. velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  286. velocity.Velocity = Vector3.new(math.random(-60,60),math.random(-60,60),math.random(-60,60))
  287. game.Debris:AddItem(velocity, 0.5)
  288. end
  289. end
  290. end
  291. end
  292. end
  293. function scan()
  294. while wait(0.1) do
  295. for i,w in pairs(workspace:GetChildren()) do
  296. if w.ClassName == "Sound" and w.Name ~= "Sound" then
  297. if w.Volume >= 4 then
  298. local function lolriplmao()
  299. while game:GetService("RunService").Heartbeat:wait() do
  300. w.Volume = 1
  301. end
  302. end
  303. spawn(lolriplmao)
  304. message("Detected loud audio coming from workspace")
  305. end
  306. end
  307. end
  308. for i,v in pairs(game:GetService("Players"):GetChildren()) do
  309. if v.Character then
  310. for q,w in pairs(v.Character:GetChildren()) do
  311. if w.ClassName == "Sound" then
  312. if w.Volume >= 4 then
  313. local function lolriplmao()
  314. while game:GetService("RunService").Heartbeat:wait() do
  315. w.Volume = 1
  316. end
  317. end
  318. spawn(lolriplmao)
  319. message("Detected loud audio coming from ".. v.Name)
  320. end
  321. end
  322. for e,r in pairs(w:GetChildren()) do
  323. if r.ClassName == "Sound" then
  324. if r.Volume >= 4 then
  325. local function lolriplmao()
  326. while game:GetService("RunService").Heartbeat:wait() do
  327. r.Volume = 1
  328. end
  329. end
  330. spawn(lolriplmao)
  331. message("Detected loud audio coming from ".. v.Name)
  332. end
  333. end
  334. end
  335. end
  336. if not v.Character:findFirstChild("pwned") then
  337. --Ultra Instict 2019
  338. if v.Character:findFirstChild("Hair") then
  339. if v.Character.Hair:findFirstChild("Mesh") then
  340. if v.Character.Hair.Mesh.MeshId == "rbxassetid://455100513" then
  341. local function uncol()
  342. while game:GetService("RunService").Heartbeat:wait() do
  343. v.Character.Hair.CanCollide = false
  344. end
  345. end
  346. spawn(uncol)
  347. for q,w in pairs(v.Character:GetChildren()) do
  348. if w.Name == "NewPart" then
  349. w.CanCollide = false
  350. end
  351. end
  352. punishplayer(v.Character)
  353. message(v.Name.." has used Ultra Instict.")
  354. end
  355. end
  356. end
  357. --
  358. --nahid Chara
  359. if v.Character:findFirstChild("Blob") then
  360. if v.Character:findFirstChild("Name") then
  361. if v.Character:findFirstChild("Name"):findFirstChild("TextLabel") then
  362. v.Character:findFirstChild("Name").TextLabel.Text = "lol skid"
  363. punishplayer(v.Character)
  364. message(v.Name.." has used nahid Chara.")
  365. end
  366. end
  367. end
  368. --star glitcher
  369. if v.Character:findFirstChild("Head") then
  370. if v.Character.Head:findFirstChild("ModeName") then
  371. v.Character.Head:findFirstChild("ModeName"):findFirstChildOfClass("TextLabel").Text = "nah get out star skid"
  372. punishplayer(v.Character)
  373. message(v.Name.." has used Star Glitcher.")
  374. end
  375. end
  376. if v.Character:findFirstChildOfClass("Sound") then
  377. if v.Character:findFirstChildOfClass("Sound").SoundId == "rbxassetid://614032233" then
  378. punishplayer(v.Character)
  379. message(v.Name.." has used Star Glitcher.")
  380. end
  381. end
  382. --jevil (im so sorry mrfunnylaughs)
  383. if v.Character:findFirstChild("Torso") then
  384. if v.Character.Torso:findFirstChild("JevilTheme") then
  385. v.Character.Torso:findFirstChild("JevilTheme").SoundId = "rbxassetid://1953695670"
  386. v.Character.Torso:findFirstChild("JevilTheme").TimePosition = 5
  387. v.Character.Torso:findFirstChild("JevilTheme"):Play()
  388. punishplayer(v.Character)
  389. message(v.Name.." has used Jevil.")
  390. end
  391. end
  392. --dead gun
  393. if v.Character:findFirstChild("Torso") then
  394. if v.Character.Torso:findFirstChild("Sound") then
  395. if v.Character.Torso:findFirstChild("Sound").SoundId == "rbxassetid://318812395" then
  396. v.Character.Torso:findFirstChild("Sound").SoundId = "rbxassetid://775395533"
  397. punishplayer(v.Character)
  398. message(v.Name.." has used Dead Gun.")
  399. end
  400. end
  401. end
  402. end
  403. end
  404. end
  405. end
  406. end
  407. spawn(scan)
  408. message("Anti-Skid v4 executed successfully.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement