Advertisement
Exploiter3030

Untitled

Feb 27th, 2019
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.25 KB | None | 0 0
  1.  
  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. script.Parent = Player.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent and t.Function then
  33. t.Function(...)
  34. end
  35. end
  36. m.TrigEvent = te
  37. UIS.TrigEvent = te
  38.  
  39. Event.OnServerEvent:Connect(function(plr,io)
  40. if plr~=Player then return end
  41. if io.isMouse then
  42. m.Target = io.Target
  43. m.Hit = io.Hit
  44. else
  45. local b = io.UserInputState == Enum.UserInputState.Begin
  46. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  47. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  48. end
  49. for _,t in pairs(CAS.Actions) do
  50. for _,k in pairs(t.Keys) do
  51. if k==io.KeyCode then
  52. t.Function(t.Name,io.UserInputState,io)
  53. end
  54. end
  55. end
  56. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  57. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  58. end
  59. end)
  60. Event.Parent = NLS([==[
  61. local Player = game:GetService("Players").LocalPlayer
  62. local Event = script:WaitForChild("UserInput_Event")
  63.  
  64. local UIS = game:GetService("UserInputService")
  65. local input = function(io,a)
  66. if a then return end
  67. --Since InputObject is a client-side instance, we create and pass table instead
  68. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  69. end
  70. UIS.InputBegan:Connect(input)
  71. UIS.InputEnded:Connect(input)
  72.  
  73. local Mouse = Player:GetMouse()
  74. local h,t
  75. --Give the server mouse data 30 times every second, but only if the values changed
  76. --If player is not moving their mouse, client won't fire events
  77. while wait(1/30) do
  78. if h~=Mouse.Hit or t~=Mouse.Target then
  79. h,t=Mouse.Hit,Mouse.Target
  80. Event:FireServer({isMouse=true,Target=t,Hit=h})
  81. end
  82. end]==],Player.Character)
  83. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  84. end
  85. local music = "2778425335"
  86. local pitch = 1
  87. local volume = 100
  88. local distance = 1000
  89. local admins = {owner.name, "Hatuey_Yael", "AltSkittles", "DeM_Skittles", "unknown"}
  90. local part = Instance.new("Part")
  91. local mesh = Instance.new("SpecialMesh")
  92. local weld = Instance.new("Weld")
  93. local sound = Instance.new("Sound")
  94.  
  95. part.Parent = owner.Character.Head
  96. part.Size = Vector3.new(3.237, 1.909, 1.506)
  97.  
  98. sound.Parent = part
  99. sound.SoundId = "rbxassetid://" ..music
  100. sound.MaxDistance = distance
  101. sound.Volume = volume
  102. sound.Looped = true
  103. sound.PlaybackSpeed = pitch
  104. sound:Play()
  105.  
  106.  
  107. mesh.Parent = part
  108. mesh.MeshId = "rbxassetid://2511970016"
  109. mesh.TextureId = "rbxassetid://2511970101"
  110.  
  111. weld.Parent = owner.Character.Head
  112. weld.Part0 = part
  113. weld.Part1 = owner.Character.Head
  114. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 3.2, 0)
  115. weld.C0 = CFrame.new(2, 0, 5)
  116. while true do
  117. wait()
  118. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 1, 0)
  119. wait()
  120. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 1.1, 0)
  121. wait()
  122. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 1.2, 0)
  123. wait()
  124. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 1.3, 0)
  125. wait()
  126. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 1.4, 0)
  127. wait()
  128. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 1.5, 0)
  129. wait()
  130. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  131. wait()
  132. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 1.7, 0)
  133. wait()
  134. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 1.8, 0)
  135. wait()
  136. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 1.9, 0)
  137. wait()
  138. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 2, 0)
  139. wait()
  140. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 2.1, 0)
  141. wait()
  142. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 2.2, 0)
  143. wait()
  144. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 2.3, 0)
  145. wait()
  146. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 2.4, 0)
  147. wait()
  148. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 2.5, 0)
  149. wait()
  150. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 2.6, 0)
  151. wait()
  152. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 2.7, 0)
  153. wait()
  154. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 2.8, 0)
  155. wait()
  156. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 2.9, 0)
  157. wait()
  158. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 3, 0)
  159. wait()
  160. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 3.1, 0)
  161. wait()
  162. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 3.2, 0)
  163. wait()
  164. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 3.3, 0)
  165. wait()
  166. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 3.4, 0)
  167. wait()
  168. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 3.5, 0)
  169. wait()
  170. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 3.6, 0)
  171. wait()
  172. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 3.7, 0)
  173. wait()
  174. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 3.8, 0)
  175. wait()
  176. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 3.9, 0)
  177. wait()
  178. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 4, 0)
  179. wait()
  180. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 4.1, 0)
  181. wait()
  182. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 4.2, 0)
  183. wait()
  184. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 4.3, 0)
  185. wait()
  186. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 4.4, 0)
  187. wait()
  188. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 4.5, 0)
  189. wait()
  190. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 4.6, 0)
  191. wait()
  192. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 4.7, 0)
  193. wait()
  194. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 4.8, 0)
  195. wait()
  196. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 4.9, 0)
  197. wait()
  198. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 5, 0)
  199. wait()
  200. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 5.1, 0)
  201. wait()
  202. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 5.2, 0)
  203. wait()
  204. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 5.3, 0)
  205. wait()
  206. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 5.4, 0)
  207. wait()
  208. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 5.5, 0)
  209. wait()
  210. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 5.6, 0)
  211. wait()
  212. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 5.7, 0)
  213. wait()
  214. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 5.8, 0)
  215. wait()
  216. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 5.9, 0)
  217. wait()
  218. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 6, 0)
  219. wait()
  220. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 6.1, 0)
  221. wait()
  222. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 6.2, 0)
  223. wait()
  224. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 6.3, 0)
  225. wait()
  226. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 6.4, 0)
  227. wait()
  228. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 6.5, 0)
  229. wait()
  230. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 6.6, 0)
  231. wait()
  232. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 6.7, 0)
  233. wait()
  234. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 6.8, 0)
  235. wait()
  236. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 6.9, 0)
  237. wait()
  238. end
  239.  
  240. for i,v in pairs(game.Players:GetPlayers()) do
  241.  
  242. if admins[v.Name] then
  243. print("An admin is in the server.")
  244. end
  245.  
  246. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement