Advertisement
pakin2549

Untitled

Mar 17th, 2021
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. local RealPlayer = Player
  4. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  5.  
  6.  
  7. local player = owner
  8. local Cha = player.Character
  9. local mouse = player:GetMouse()
  10. local henshine = false
  11. local RAC = Cha.Torso:WaitForChild("Right Shoulder")
  12. local LAC = Cha.Torso:WaitForChild("Left Shoulder")
  13. local RLC = Cha.Torso:WaitForChild("Right Hip")
  14. local LLC = Cha.Torso:WaitForChild("Left Hip")
  15. local Neck = Cha.Torso:WaitForChild("Neck")
  16. local RA = Cha:FindFirstChild("Right Arm")
  17. local LA = Cha:FindFirstChild("Left Arm")
  18. local Torso = Cha.Torso
  19. local Root = Cha.HumanoidRootPart
  20. local Head = Cha.Head
  21. local RL = Cha:FindFirstChild("Right Leg")
  22. local LL = Cha:FindFirstChild("Left Leg")
  23. local Humanoid = Cha.Humanoid
  24. local Hip = Cha.HumanoidRootPart:FindFirstChild("RootJoint")
  25. local engine = false
  26. local IgnoreTable = {}
  27. local fly = false
  28.  
  29. Humanoid.WalkSpeed = 0
  30. local Driver = Instance.new("Part")
  31. Driver.Parent = Cha.Torso
  32. Driver.BrickColor = BrickColor.new("New Yeller")
  33. Driver.CanCollide = false
  34. Driver.Material = "Neon"
  35. local weld = Instance.new("Weld")
  36. weld.Part0 = Root
  37. weld.Part1 = Driver
  38. weld.C1 = CFrame.new(0,-11.5,-15)
  39. weld.Parent = Driver
  40. local BeyondDriver = Instance.new("SpecialMesh")
  41. BeyondDriver.MeshType = "FileMesh"
  42. BeyondDriver.MeshId = "rbxassetid://3708245877"
  43. BeyondDriver.TextureId = "rbxassetid://3708246211"
  44. BeyondDriver.Parent = Driver
  45. local SongDriver = Instance.new("Sound")
  46. SongDriver.Parent = Cha.Torso
  47. SongDriver.SoundId = "rbxassetid://379445280"
  48. SongDriver.Volume = 30
  49. SongDriver:Play()
  50.  
  51.  
  52.  
  53.  
  54. local Wheel = Instance.new("Part")
  55. Wheel.Parent = Cha.Torso
  56. Wheel.BrickColor = BrickColor.new("New Yeller")
  57. Wheel.CanCollide = false
  58. Wheel.Material = "Neon"
  59. Wheel.Name = "FlareSpawn"
  60. local weld1 = Instance.new("Weld")
  61. weld1.Part0 = Root
  62. weld1.Part1 = Wheel
  63. weld1.C1 = CFrame.new(0,-0.5,-15)
  64. weld1.Parent = Wheel
  65. local Wheel1 = Instance.new("SpecialMesh")
  66. Wheel1.MeshType = "FileMesh"
  67. Wheel1.MeshId = "rbxassetid://3708255728"
  68. Wheel1.TextureId = "rbxassetid://3708256070"
  69. Wheel1.Parent = Wheel
  70.  
  71. local glass = Instance.new("Part")
  72. glass.Parent = Cha.Torso
  73. glass.Transparency = 0.5
  74. glass.CanCollide = false
  75. glass.Material = "Glass"
  76. local weld1glass = Instance.new("Weld")
  77. weld1glass.Part0 = Torso
  78. weld1glass.Part1 = glass
  79. weld1glass.C1 = CFrame.new(0,-1,-1)
  80. weld1glass.Parent = glass
  81. local Wheel1glass = Instance.new("SpecialMesh")
  82. Wheel1glass.MeshType = "FileMesh"
  83. Wheel1glass.MeshId = "rbxassetid://3708338065"
  84. Wheel1glass.Parent = glass
  85.  
  86.  
  87. local Flare = Instance.new("Part")
  88. Flare.Parent = Cha.Torso
  89. Flare.Transparency = 1
  90. Flare.CanCollide = false
  91. Flare.Material = "Glass"
  92. local weld1glassFlare = Instance.new("Weld")
  93. weld1glassFlare.Part0 = Torso
  94. weld1glassFlare.Part1 = Flare
  95. weld1glassFlare.C1 = CFrame.new(10,0,-20)
  96. weld1glassFlare.Parent = Flare
  97.  
  98. local Flare2 = Instance.new("Part")
  99. Flare2.Parent = Cha.Torso
  100. Flare2.Transparency = 1
  101. Flare2.CanCollide = false
  102. Flare2.Material = "Glass"
  103. local weld1glassFlare2 = Instance.new("Weld")
  104. weld1glassFlare2.Part0 = Torso
  105. weld1glassFlare2.Part1 = Flare2
  106. weld1glassFlare2.C1 = CFrame.new(-10,0,-20)
  107. weld1glassFlare2.Parent = Flare2
  108.  
  109.  
  110. mouse.KeyDown:connect(function(key)
  111. if key == "f" and engine == false then
  112. local start = Instance.new("Sound")
  113. start.Parent = Cha.Torso
  114. start.SoundId = "rbxassetid://134024901"
  115. start.Volume = 2
  116. start:Play()
  117. start.Looped = true
  118. engine = true
  119. end
  120. end)
  121. local dudu = false
  122.  
  123.  
  124.  
  125. RAC.C0 = RAC.C0 * CFrame.new(0.6, 0, -0.4) * CFrame.Angles(0,214,-105.2)
  126. LAC.C0 = LAC.C0 * CFrame.new(-0.6, 0,-0.4) * CFrame.Angles(0,-214,105.2)
  127. Hip.C0 = Hip.C0 * CFrame.new(0, -2, 10)
  128.  
  129. RLC.C0 = RLC.C0 * CFrame.new(0, 0, 0) * CFrame.Angles(0,0,-200)
  130. LLC.C0 = LLC.C0 * CFrame.new(0, 0, 0) * CFrame.Angles(0,0,200)
  131.  
  132.  
  133.  
  134.  
  135. mouse.KeyDown:connect(function(key)
  136. if key == "q" and engine == true then
  137. fly = true
  138. Wheel.Transparency = 1
  139. end
  140. end)
  141.  
  142.  
  143.  
  144. local turret = Instance.new("Sound")
  145. turret.Parent = Cha.Torso
  146. turret.SoundId = "rbxassetid://376582729"
  147. turret.Volume = 2
  148.  
  149.  
  150. mouse.KeyDown:connect(function(key)
  151. if key == "x" and engine == true then
  152. turret:Play()
  153. turret.Looped = true
  154. end
  155. end)
  156.  
  157. mouse.KeyUp:connect(function(key)
  158. if key == "x" and engine == true then
  159. turret:Stop()
  160. end
  161. end)
  162.  
  163.  
  164.  
  165.  
  166. mouse.KeyDown:connect(function(key)
  167. if key == "w" and engine == true then
  168. local Rev = Instance.new("Sound")
  169. Rev.Parent = Cha.Torso
  170. Rev.SoundId = "rbxassetid://243182609"
  171. Rev.Volume = 1
  172. Rev.Name = "Run"
  173. Rev:Play()
  174. Rev.Looped = true
  175. end
  176. end)
  177.  
  178.  
  179. mouse.KeyUp:connect(function(key)
  180. if key == "w" and engine == true then
  181. end
  182. end)
  183.  
  184.  
  185.  
  186. game:GetService('RunService').Stepped:Connect(function()
  187. table.foreach(Humanoid:GetPlayingAnimationTracks(), function(_, v)
  188. v:Stop()
  189. end)
  190. if Cha:FindFirstChild("Animate") then
  191. Cha:FindFirstChild("Animate"):Destroy()
  192. end
  193. end)
  194.  
  195. game:GetService('RunService').Stepped:Connect(function()
  196. if fly == true then
  197.  
  198. Root.Anchored = true
  199. Root.CFrame = CFrame.new(Root.Position,mouse.Hit.p)
  200.  
  201. Root.CFrame = Root.CFrame * CFrame.new(0,0,-5)
  202.  
  203.  
  204. end
  205.  
  206.  
  207. end)
  208.  
  209. mouse.KeyUp:connect(function(key)
  210. if key == "z" and engine == true then
  211.  
  212. function flare1()
  213. local RandomFactor = 90
  214. local RandomX = math.rad(math.random(-RandomFactor,RandomFactor))
  215. local RandomY = math.rad(math.random(-RandomFactor,RandomFactor))
  216. local Part = Instance.new("Part")
  217. Part.Transparency = 0.2
  218. Part.Name = "Flare"
  219. Part.CanCollide = true
  220. Part.FormFactor = "Symmetric"
  221. Part.Size = Vector3.new(1,1,1)
  222. Part.BottomSurface = "Smooth"
  223. Part.TopSurface = "Smooth"
  224. Part.Material = "Neon"
  225. Part.Color = Color3.new(1,1,0)
  226. local Sound = Instance.new("Sound")
  227. Sound.Parent = Part
  228. Sound.SoundId = "http://www.roblox.com/asset/?id=835453268"
  229. Sound.Volume = 1
  230. Sound.Playing = true
  231. Sound.Looped = false
  232. local Trail = Instance.new("ParticleEmitter")
  233. Trail.Parent = Part
  234. Trail.Texture = "rbxassetid://688705835"
  235. Trail.Enabled = true
  236. Trail.Rate = "60"
  237. local BG = Instance.new("BillboardGui")
  238. BG.Parent = Part
  239. BG.Size = UDim2.new(10,0,10,0)
  240. local IL = Instance.new("ImageLabel")
  241. IL.Parent = BG
  242. IL.BackgroundTransparency = 1
  243. IL.Image = "168123595"
  244. IL.Size = UDim2.new(1,0,1,0)
  245. local PL = Instance.new("PointLight")
  246. PL.Parent = Part
  247. PL.Brightness = 10
  248. PL.Color = Color3.new(1,1,0)
  249. PL.Range = 20
  250. Part.Parent = game.Workspace
  251. Part.CFrame = (Flare.CFrame) * CFrame.Angles(1,0,0)
  252. delay(10,function() Part:Destroy() end)
  253. table.insert(IgnoreTable,Part)
  254. end
  255.  
  256. function flare2()
  257.  
  258. local RandomFactor = 90
  259. local RandomX = math.rad(math.random(-RandomFactor,RandomFactor))
  260. local RandomY = math.rad(math.random(-RandomFactor,RandomFactor))
  261. local Part = Instance.new("Part")
  262. Part.Transparency = 0.2
  263. Part.Name = "Flare"
  264. Part.CanCollide = true
  265. Part.FormFactor = "Symmetric"
  266. Part.Size = Vector3.new(1,1,1)
  267. Part.BottomSurface = "Smooth"
  268. Part.TopSurface = "Smooth"
  269. Part.Material = "Neon"
  270. Part.Color = Color3.new(1,1,0)
  271. local Sound = Instance.new("Sound")
  272. Sound.Parent = Part
  273. Sound.SoundId = "http://www.roblox.com/asset/?id=835453268"
  274. Sound.Volume = 1
  275. Sound.Playing = true
  276. Sound.Looped = false
  277. local Trail = Instance.new("ParticleEmitter")
  278. Trail.Parent = Part
  279. Trail.Texture = "rbxassetid://688705835"
  280. Trail.Enabled = true
  281. Trail.Rate = "60"
  282. local BG = Instance.new("BillboardGui")
  283. BG.Parent = Part
  284. BG.Size = UDim2.new(10,0,10,0)
  285. local IL = Instance.new("ImageLabel")
  286. IL.Parent = BG
  287. IL.BackgroundTransparency = 1
  288. IL.Image = "168123595"
  289. IL.Size = UDim2.new(1,0,1,0)
  290. local PL = Instance.new("PointLight")
  291. PL.Parent = Part
  292. PL.Brightness = 10
  293. PL.Color = Color3.new(1,1,0)
  294. PL.Range = 20
  295. Part.Parent = game.Workspace
  296. Part.CFrame = (Flare2.CFrame) * CFrame.Angles(1,0,0)
  297. delay(10,function() Part:Destroy() end)
  298. table.insert(IgnoreTable,Part)
  299. end
  300. flare1()
  301. flare2()
  302.  
  303.  
  304. end
  305. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement