Advertisement
pakin2549

Untitled

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