Advertisement
Exploiter3030

Untitled

Feb 28th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.68 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. script.Parent = Player.Character
  5.  
  6. --RemoteEvent for communicating
  7. local Event = Instance.new("RemoteEvent")
  8. Event.Name = "UserInput_Event"
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local function fakeEvent()
  12. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  13. t.connect = t.Connect
  14. return t
  15. end
  16.  
  17. --Creating fake input objects with fake variables
  18. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  19. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  20. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  21. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  22. end}
  23. --Merged 2 functions into one by checking amount of arguments
  24. CAS.UnbindAction = CAS.BindAction
  25.  
  26. --This function will trigger the events that have been :Connect()'ed
  27. local function te(self,ev,...)
  28. local t = m[ev]
  29. if t and t._fakeEvent and t.Function then
  30. t.Function(...)
  31. end
  32. end
  33. m.TrigEvent = te
  34. UIS.TrigEvent = te
  35.  
  36. Event.OnServerEvent:Connect(function(plr,io)
  37. if plr~=Player then return end
  38. if io.isMouse then
  39. m.Target = io.Target
  40. m.Hit = io.Hit
  41. else
  42. local b = io.UserInputState == Enum.UserInputState.Begin
  43. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  44. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  45. end
  46. for _,t in pairs(CAS.Actions) do
  47. for _,k in pairs(t.Keys) do
  48. if k==io.KeyCode then
  49. t.Function(t.Name,io.UserInputState,io)
  50. end
  51. end
  52. end
  53. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  54. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  55. end
  56. end)
  57. Event.Parent = NLS([==[
  58. local Player = game:GetService("Players").LocalPlayer
  59. local Event = script:WaitForChild("UserInput_Event")
  60.  
  61. local UIS = game:GetService("UserInputService")
  62. local input = function(io,a)
  63. if a then return end
  64. --Since InputObject is a client-side instance, we create and pass table instead
  65. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  66. end
  67. UIS.InputBegan:Connect(input)
  68. UIS.InputEnded:Connect(input)
  69.  
  70. local Mouse = Player:GetMouse()
  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. local admins = {
  83. ["Hatuey_Yael"] = 'Admin';
  84. ["yaelcoriano123"] = 'Admin';
  85. ["AltSkittles"] = 'Admin';
  86. ["Dem_SkittlesDo"] = 'Admin';
  87. ["unknown"] = 'Admin';
  88. ["Player1"] = 'Admin';
  89. ["saltnvinigerchips"] = 'Admin';
  90. }
  91. local part = Instance.new("Part")
  92. local mesh = Instance.new("SpecialMesh")
  93. local weld = Instance.new("Weld")
  94. local sound = Instance.new("Sound")
  95. local part2 = Instance.new("Part")
  96. local weld2 = Instance.new("Weld")
  97. local mesh2 = Instance.new("SpecialMesh")
  98. enabled = true
  99. ButtonDown = true
  100. wait(0.1)
  101.  
  102. for i,v in pairs(workspace[owner.Name]:GetChildren()) do
  103. if v:IsA("Accessory") then
  104. v:Destroy()
  105. end
  106. end
  107. wait(0.1)
  108. for i,v in pairs(workspace[owner.Name]:GetChildren()) do
  109. if v:IsA("Accessory") then
  110. v:Destroy()
  111. end
  112.  
  113. end
  114.  
  115. owner.Character.Head.Transparency = 1
  116.  
  117. part.Parent = owner.Character.Head
  118. part.Size = Vector3.new(3.237, 1.909, 1.506)
  119. part.CanCollide = false
  120.  
  121. part2.Size = Vector3.new(2.579, 2.247, 2.27)
  122. part2.CanCollide = false
  123. part2.Parent = owner.Character.Head
  124. mesh2.Parent = part2
  125. mesh2.MeshId = "rbxassetid://431035980"
  126. mesh2.TextureId = "rbxassetid://431036179"
  127.  
  128. weld2.Part0 = part2
  129. weld2.Part1 = owner.Character.Head
  130. weld2.Parent = part2
  131.  
  132. sound.Parent = part
  133. sound.SoundId = "rbxassetid://2778425335"
  134. sound.MaxDistance = 1000
  135. sound.Volume = 100
  136. sound.Looped = true
  137. sound.PlaybackSpeed = 1
  138. sound:Play()
  139.  
  140. Mouse.KeyDown:connect(function(key)
  141. if enabled == false then return end
  142. key = key:lower()
  143. if key == "r" then
  144. enabled = false
  145. local fireball = Instance.new("Part")
  146. local fire = Instance.new("Fire")
  147. local bv = Instance.new("BodyVelocity")
  148. fireball.Shape = "Ball"
  149. fireball.Material = "Neon"
  150. fireball.Parent = owner.Character
  151. fireball.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, -5)
  152. fireball.BrickColor = BrickColor.new("Bright red")
  153.  
  154. fire.Parent = fireball
  155. fire.Heat = 25
  156. fire.Size = 10
  157. fire.Color = Color3.new(214, 0, 0)
  158. fireball.Anchored = true
  159. fireball.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0, 5, 0)
  160.  
  161. bg = Instance.new("BodyGyro", owner.Character.HumanoidRootPart)
  162. bg.Name = "SkillGyro"
  163. bg.D = 100
  164. bg.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  165. bp = Instance.new("BodyPosition", owner.Character.HumanoidRootPart)
  166. bp.Position = owner.Character.HumanoidRootPart.Position
  167. bp.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  168. ---
  169. while ButtonDown == true do
  170. bg.CFrame = CFrame.new(owner.Character.HumanoidRootPart.Position, Mouse.Hit.p)
  171. fire.Size = fire.Size + 0.2
  172. fireball.Size = fireball.Size+Vector3.new(0.1, 0.1, 0.1)
  173. fireball.CFrame = fireball.CFrame * CFrame.new(0, 0.05, 0)
  174. wait()
  175. end
  176. ---
  177.  
  178. fireball.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, -5)
  179. fireball.Anchored = false
  180. fireball.CanCollide = false
  181. bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  182. bv.Velocity = owner.Character.HumanoidRootPart.CFrame.lookVector*100
  183. bv.Parent = fireball
  184. if ButtonDown == false then
  185. bg:remove()
  186. bp:remove()
  187. ButtonDown = true
  188. end
  189.  
  190. fireball.Touched:connect(function(hit)
  191. local humanoid = hit.Parent:FindFirstChild("Humanoid")
  192. if humanoid ~= nil then
  193. if hit.Parent.Name ~= owner.Name then
  194. hit:Destroy()
  195. end
  196. end
  197. wait(10)
  198. fireball:Destroy()
  199. end)
  200. end
  201. wait(1)
  202. enabled = true
  203. end)
  204.  
  205.  
  206. for i,v in pairs(game.Players:GetPlayers()) do
  207. if admins[v.Name] then
  208. print("An admin is in the server")
  209. owner.Chatted:connect(function(msg)
  210. if msg:sub(1,5) == "play " or msg:sub(1,5) == "Play " then
  211. sound:Stop()
  212. sound.SoundId = "rbxassetid://" ..msg:sub(6)
  213. sound:Play()
  214. elseif msg:sub(1,6) == "pitch " or msg:sub(1,6) == "Pitch " then
  215. sound.PlaybackSpeed = msg:sub(7)
  216. elseif msg:sub(1,7) == "volume " or msg:sub(1,7) == "Volume " then
  217. sound.Volume = msg:sub(8)
  218. elseif msg:sub(1,9) == "distance " or msg:sub(1,9) == "Distance " then
  219. sound.MaxDistance = msg:sub(10)
  220. end
  221.  
  222. end)
  223. end
  224. end
  225.  
  226. Mouse.KeyUp:connect(function(key)
  227. key = key:lower()
  228. if key == "r" then
  229. ButtonDown = false
  230.  
  231. end
  232.  
  233. end)
  234.  
  235. mesh.Parent = part
  236. mesh.MeshId = "rbxassetid://2511970016"
  237. mesh.TextureId = "rbxassetid://2511970101"
  238.  
  239. weld.Parent = owner.Character.Head
  240. weld.Part0 = part
  241. weld.Part1 = owner.Character.Head
  242. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 3.2, 0)
  243. weld.C0 = CFrame.new(2, 0, 5)
  244.  
  245. while true do
  246. wait()
  247. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 1, 0)
  248. wait()
  249. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 1.1, 0)
  250. wait()
  251. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 1.2, 0)
  252. wait()
  253. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 1.3, 0)
  254. wait()
  255. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 1.4, 0)
  256. wait()
  257. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 1.5, 0)
  258. wait()
  259. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  260. wait()
  261. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 1.7, 0)
  262. wait()
  263. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 1.8, 0)
  264. wait()
  265. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 1.9, 0)
  266. wait()
  267. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 2, 0)
  268. wait()
  269. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 2.1, 0)
  270. wait()
  271. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 2.2, 0)
  272. wait()
  273. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 2.3, 0)
  274. wait()
  275. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 2.4, 0)
  276. wait()
  277. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 2.5, 0)
  278. wait()
  279. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 2.6, 0)
  280. wait()
  281. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 2.7, 0)
  282. wait()
  283. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 2.8, 0)
  284. wait()
  285. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 2.9, 0)
  286. wait()
  287. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 3, 0)
  288. wait()
  289. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 3.1, 0)
  290. wait()
  291. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 3.2, 0)
  292. wait()
  293. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 3.3, 0)
  294. wait()
  295. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 3.4, 0)
  296. wait()
  297. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 3.5, 0)
  298. wait()
  299. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 3.6, 0)
  300. wait()
  301. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 3.7, 0)
  302. wait()
  303. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 3.8, 0)
  304. wait()
  305. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 3.9, 0)
  306. wait()
  307. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 4, 0)
  308. wait()
  309. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 4.1, 0)
  310. wait()
  311. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 4.2, 0)
  312. wait()
  313. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 4.3, 0)
  314. wait()
  315. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 4.4, 0)
  316. wait()
  317. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 4.5, 0)
  318. wait()
  319. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 4.6, 0)
  320. wait()
  321. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 4.7, 0)
  322. wait()
  323. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 4.8, 0)
  324. wait()
  325. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 4.9, 0)
  326. wait()
  327. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 5, 0)
  328. wait()
  329. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 5.1, 0)
  330. wait()
  331. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 5.2, 0)
  332. wait()
  333. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 5.3, 0)
  334. wait()
  335. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 5.4, 0)
  336. wait()
  337. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 5.5, 0)
  338. wait()
  339. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 5.6, 0)
  340. wait()
  341. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 5.7, 0)
  342. wait()
  343. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 5.8, 0)
  344. wait()
  345. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 5.9, 0)
  346. wait()
  347. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 6, 0)
  348. wait()
  349. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 6.1, 0)
  350. wait()
  351. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 6.2, 0)
  352. wait()
  353. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 6.3, 0)
  354. wait()
  355. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 6.4, 0)
  356. wait()
  357. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 6.5, 0)
  358. wait()
  359. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 6.6, 0)
  360. wait()
  361. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 6.7, 0)
  362. wait()
  363. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 6.8, 0)
  364. wait()
  365. weld.C1 = CFrame.fromEulerAnglesXYZ(0, 6.9, 0)
  366. wait()
  367. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement