Advertisement
pakin2549

Untitled

Mar 17th, 2021
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.64 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. 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. RAC.C0 = RAC.C0 * CFrame.new(0.6, 0, -0.4) * CFrame.Angles(0,214,-105.2)
  125. LAC.C0 = LAC.C0 * CFrame.new(-0.6, 0,-0.4) * CFrame.Angles(0,-214,105.2)
  126. Hip.C0 = Hip.C0 * CFrame.new(0, -2, 10)
  127.  
  128. RLC.C0 = RLC.C0 * CFrame.new(0, 0, 0) * CFrame.Angles(0,0,-200)
  129. LLC.C0 = LLC.C0 * CFrame.new(0, 0, 0) * CFrame.Angles(0,0,200)
  130.  
  131.  
  132.  
  133.  
  134. mouse.KeyDown:connect(function(key)
  135. if key == "q" and engine == true then
  136. fly = true
  137. Wheel.Transparency = 1
  138. end
  139. end)
  140.  
  141.  
  142.  
  143.  
  144. mouse.KeyDown:connect(function(key)
  145. if key == "w" and engine == true then
  146. local Rev = Instance.new("Sound")
  147. Rev.Parent = Cha.Torso
  148. Rev.SoundId = "rbxassetid://243182609"
  149. Rev.Volume = 1
  150. Rev.Name = "Run"
  151. Rev:Play()
  152. Rev.Looped = true
  153. end
  154. end)
  155.  
  156.  
  157. mouse.KeyUp:connect(function(key)
  158. if key == "w" and engine == true then
  159. end
  160. end)
  161.  
  162.  
  163.  
  164. game:GetService('RunService').Stepped:Connect(function()
  165. table.foreach(Humanoid:GetPlayingAnimationTracks(), function(_, v)
  166. v:Stop()
  167. end)
  168. if Cha:FindFirstChild("Animate") then
  169. Cha:FindFirstChild("Animate"):Destroy()
  170. end
  171. end)
  172.  
  173. game:GetService('RunService').Stepped:Connect(function()
  174. if fly == true then
  175.  
  176. Root.Anchored = true
  177. Root.CFrame = CFrame.new(Root.Position,mouse.Hit.p)
  178.  
  179. Root.CFrame = Root.CFrame * CFrame.new(0,0,-5)
  180.  
  181.  
  182. end
  183.  
  184.  
  185. end)
  186.  
  187. mouse.KeyUp:connect(function(key)
  188. if key == "z" and engine == true then
  189.  
  190. function flare1()
  191. local RandomFactor = 90
  192. local RandomX = math.rad(math.random(-RandomFactor,RandomFactor))
  193. local RandomY = math.rad(math.random(-RandomFactor,RandomFactor))
  194. local Part = Instance.new("Part")
  195. Part.Transparency = 0.2
  196. Part.Name = "Flare"
  197. Part.CanCollide = true
  198. Part.FormFactor = "Symmetric"
  199. Part.Size = Vector3.new(1,1,1)
  200. Part.BottomSurface = "Smooth"
  201. Part.TopSurface = "Smooth"
  202. Part.Material = "Neon"
  203. Part.Color = Color3.new(1,1,0)
  204. local Sound = Instance.new("Sound")
  205. Sound.Parent = Part
  206. Sound.SoundId = "http://www.roblox.com/asset/?id=835453268"
  207. Sound.Volume = 1
  208. Sound.Playing = true
  209. Sound.Looped = false
  210. local Trail = Instance.new("ParticleEmitter")
  211. Trail.Parent = Part
  212. Trail.Texture = "rbxassetid://688705835"
  213. Trail.Enabled = true
  214. Trail.Rate = "60"
  215. local BG = Instance.new("BillboardGui")
  216. BG.Parent = Part
  217. BG.Size = UDim2.new(10,0,10,0)
  218. local IL = Instance.new("ImageLabel")
  219. IL.Parent = BG
  220. IL.BackgroundTransparency = 1
  221. IL.Image = "168123595"
  222. IL.Size = UDim2.new(1,0,1,0)
  223. local PL = Instance.new("PointLight")
  224. PL.Parent = Part
  225. PL.Brightness = 10
  226. PL.Color = Color3.new(1,1,0)
  227. PL.Range = 20
  228. Part.Parent = game.Workspace
  229. Part.CFrame = (Flare.CFrame) * CFrame.Angles(1,0,0)
  230. delay(10,function() Part:Destroy() end)
  231. table.insert(IgnoreTable,Part)
  232. end
  233.  
  234. function flare2()
  235.  
  236. local RandomFactor = 90
  237. local RandomX = math.rad(math.random(-RandomFactor,RandomFactor))
  238. local RandomY = math.rad(math.random(-RandomFactor,RandomFactor))
  239. local Part = Instance.new("Part")
  240. Part.Transparency = 0.2
  241. Part.Name = "Flare"
  242. Part.CanCollide = true
  243. Part.FormFactor = "Symmetric"
  244. Part.Size = Vector3.new(1,1,1)
  245. Part.BottomSurface = "Smooth"
  246. Part.TopSurface = "Smooth"
  247. Part.Material = "Neon"
  248. Part.Color = Color3.new(1,1,0)
  249. local Sound = Instance.new("Sound")
  250. Sound.Parent = Part
  251. Sound.SoundId = "http://www.roblox.com/asset/?id=835453268"
  252. Sound.Volume = 1
  253. Sound.Playing = true
  254. Sound.Looped = false
  255. local Trail = Instance.new("ParticleEmitter")
  256. Trail.Parent = Part
  257. Trail.Texture = "rbxassetid://688705835"
  258. Trail.Enabled = true
  259. Trail.Rate = "60"
  260. local BG = Instance.new("BillboardGui")
  261. BG.Parent = Part
  262. BG.Size = UDim2.new(10,0,10,0)
  263. local IL = Instance.new("ImageLabel")
  264. IL.Parent = BG
  265. IL.BackgroundTransparency = 1
  266. IL.Image = "168123595"
  267. IL.Size = UDim2.new(1,0,1,0)
  268. local PL = Instance.new("PointLight")
  269. PL.Parent = Part
  270. PL.Brightness = 10
  271. PL.Color = Color3.new(1,1,0)
  272. PL.Range = 20
  273. Part.Parent = game.Workspace
  274. Part.CFrame = (Flare2.CFrame) * CFrame.Angles(1,0,0)
  275. delay(10,function() Part:Destroy() end)
  276. table.insert(IgnoreTable,Part)
  277. end
  278. flare1()
  279. flare2()
  280.  
  281.  
  282. end
  283. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement