Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- 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
- local player = owner
- local Cha = player.Character
- local mouse = player:GetMouse()
- local henshine = false
- local RAC = Cha.Torso:WaitForChild("Right Shoulder")
- local LAC = Cha.Torso:WaitForChild("Left Shoulder")
- local RLC = Cha.Torso:WaitForChild("Right Hip")
- local LLC = Cha.Torso:WaitForChild("Left Hip")
- local Neck = Cha.Torso:WaitForChild("Neck")
- local RA = Cha:FindFirstChild("Right Arm")
- local LA = Cha:FindFirstChild("Left Arm")
- local Torso = Cha.Torso
- local Root = Cha.HumanoidRootPart
- local Head = Cha.Head
- local RL = Cha:FindFirstChild("Right Leg")
- local LL = Cha:FindFirstChild("Left Leg")
- local Humanoid = Cha.Humanoid
- local Hip = Cha.HumanoidRootPart:FindFirstChild("RootJoint")
- local engine = false
- local IgnoreTable = {}
- local fly = false
- Humanoid.WalkSpeed = 0
- local Driver = Instance.new("Part")
- Driver.Parent = Cha.Torso
- Driver.BrickColor = BrickColor.new("New Yeller")
- Driver.CanCollide = false
- Driver.Material = "Neon"
- local weld = Instance.new("Weld")
- weld.Part0 = Root
- weld.Part1 = Driver
- weld.C1 = CFrame.new(0,-11.5,-15)
- weld.Parent = Driver
- local BeyondDriver = Instance.new("SpecialMesh")
- BeyondDriver.MeshType = "FileMesh"
- BeyondDriver.MeshId = "rbxassetid://3708245877"
- BeyondDriver.TextureId = "rbxassetid://3708246211"
- BeyondDriver.Parent = Driver
- local SongDriver = Instance.new("Sound")
- SongDriver.Parent = Cha.Torso
- SongDriver.SoundId = "rbxassetid://379445280"
- SongDriver.Volume = 30
- SongDriver:Play()
- local Wheel = Instance.new("Part")
- Wheel.Parent = Cha.Torso
- Wheel.BrickColor = BrickColor.new("New Yeller")
- Wheel.CanCollide = false
- Wheel.Material = "Neon"
- Wheel.Name = "FlareSpawn"
- local weld1 = Instance.new("Weld")
- weld1.Part0 = Root
- weld1.Part1 = Wheel
- weld1.C1 = CFrame.new(0,-0.5,-15)
- weld1.Parent = Wheel
- local Wheel1 = Instance.new("SpecialMesh")
- Wheel1.MeshType = "FileMesh"
- Wheel1.MeshId = "rbxassetid://3708255728"
- Wheel1.TextureId = "rbxassetid://3708256070"
- Wheel1.Parent = Wheel
- local glass = Instance.new("Part")
- glass.Parent = Cha.Torso
- glass.Transparency = 0.5
- glass.CanCollide = false
- glass.Material = "Glass"
- local weld1glass = Instance.new("Weld")
- weld1glass.Part0 = Torso
- weld1glass.Part1 = glass
- weld1glass.C1 = CFrame.new(0,-1,-1)
- weld1glass.Parent = glass
- local Wheel1glass = Instance.new("SpecialMesh")
- Wheel1glass.MeshType = "FileMesh"
- Wheel1glass.MeshId = "rbxassetid://3708338065"
- Wheel1glass.Parent = glass
- local Flare = Instance.new("Part")
- Flare.Parent = Cha.Torso
- Flare.Transparency = 1
- Flare.CanCollide = false
- Flare.Material = "Glass"
- local weld1glassFlare = Instance.new("Weld")
- weld1glassFlare.Part0 = Torso
- weld1glassFlare.Part1 = Flare
- weld1glassFlare.C1 = CFrame.new(10,0,-20)
- weld1glassFlare.Parent = Flare
- local Flare2 = Instance.new("Part")
- Flare2.Parent = Cha.Torso
- Flare2.Transparency = 1
- Flare2.CanCollide = false
- Flare2.Material = "Glass"
- local weld1glassFlare2 = Instance.new("Weld")
- weld1glassFlare2.Part0 = Torso
- weld1glassFlare2.Part1 = Flare2
- weld1glassFlare2.C1 = CFrame.new(-10,0,-20)
- weld1glassFlare2.Parent = Flare2
- mouse.KeyDown:connect(function(key)
- if key == "f" and engine == false then
- local start = Instance.new("Sound")
- start.Parent = Cha.Torso
- start.SoundId = "rbxassetid://134024901"
- start.Volume = 2
- start:Play()
- start.Looped = true
- engine = true
- end
- end)
- local dudu = false
- RAC.C0 = RAC.C0 * CFrame.new(0.6, 0, -0.4) * CFrame.Angles(0,214,-105.2)
- LAC.C0 = LAC.C0 * CFrame.new(-0.6, 0,-0.4) * CFrame.Angles(0,-214,105.2)
- Hip.C0 = Hip.C0 * CFrame.new(0, -2, 10)
- RLC.C0 = RLC.C0 * CFrame.new(0, 0, 0) * CFrame.Angles(0,0,-200)
- LLC.C0 = LLC.C0 * CFrame.new(0, 0, 0) * CFrame.Angles(0,0,200)
- mouse.KeyDown:connect(function(key)
- if key == "q" and engine == true then
- fly = true
- Wheel.Transparency = 1
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == "w" and engine == true then
- local Rev = Instance.new("Sound")
- Rev.Parent = Cha.Torso
- Rev.SoundId = "rbxassetid://243182609"
- Rev.Volume = 1
- Rev.Name = "Run"
- Rev:Play()
- Rev.Looped = true
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key == "w" and engine == true then
- end
- end)
- game:GetService('RunService').Stepped:Connect(function()
- table.foreach(Humanoid:GetPlayingAnimationTracks(), function(_, v)
- v:Stop()
- end)
- if Cha:FindFirstChild("Animate") then
- Cha:FindFirstChild("Animate"):Destroy()
- end
- end)
- game:GetService('RunService').Stepped:Connect(function()
- if fly == true then
- Root.Anchored = true
- Root.CFrame = CFrame.new(Root.Position,mouse.Hit.p)
- Root.CFrame = Root.CFrame * CFrame.new(0,0,-5)
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key == "z" and engine == true then
- function flare1()
- local RandomFactor = 90
- local RandomX = math.rad(math.random(-RandomFactor,RandomFactor))
- local RandomY = math.rad(math.random(-RandomFactor,RandomFactor))
- local Part = Instance.new("Part")
- Part.Transparency = 0.2
- Part.Name = "Flare"
- Part.CanCollide = true
- Part.FormFactor = "Symmetric"
- Part.Size = Vector3.new(1,1,1)
- Part.BottomSurface = "Smooth"
- Part.TopSurface = "Smooth"
- Part.Material = "Neon"
- Part.Color = Color3.new(1,1,0)
- local Sound = Instance.new("Sound")
- Sound.Parent = Part
- Sound.SoundId = "http://www.roblox.com/asset/?id=835453268"
- Sound.Volume = 1
- Sound.Playing = true
- Sound.Looped = false
- local Trail = Instance.new("ParticleEmitter")
- Trail.Parent = Part
- Trail.Texture = "rbxassetid://688705835"
- Trail.Enabled = true
- Trail.Rate = "60"
- local BG = Instance.new("BillboardGui")
- BG.Parent = Part
- BG.Size = UDim2.new(10,0,10,0)
- local IL = Instance.new("ImageLabel")
- IL.Parent = BG
- IL.BackgroundTransparency = 1
- IL.Image = "168123595"
- IL.Size = UDim2.new(1,0,1,0)
- local PL = Instance.new("PointLight")
- PL.Parent = Part
- PL.Brightness = 10
- PL.Color = Color3.new(1,1,0)
- PL.Range = 20
- Part.Parent = game.Workspace
- Part.CFrame = (Flare.CFrame) * CFrame.Angles(1,0,0)
- delay(10,function() Part:Destroy() end)
- table.insert(IgnoreTable,Part)
- end
- function flare2()
- local RandomFactor = 90
- local RandomX = math.rad(math.random(-RandomFactor,RandomFactor))
- local RandomY = math.rad(math.random(-RandomFactor,RandomFactor))
- local Part = Instance.new("Part")
- Part.Transparency = 0.2
- Part.Name = "Flare"
- Part.CanCollide = true
- Part.FormFactor = "Symmetric"
- Part.Size = Vector3.new(1,1,1)
- Part.BottomSurface = "Smooth"
- Part.TopSurface = "Smooth"
- Part.Material = "Neon"
- Part.Color = Color3.new(1,1,0)
- local Sound = Instance.new("Sound")
- Sound.Parent = Part
- Sound.SoundId = "http://www.roblox.com/asset/?id=835453268"
- Sound.Volume = 1
- Sound.Playing = true
- Sound.Looped = false
- local Trail = Instance.new("ParticleEmitter")
- Trail.Parent = Part
- Trail.Texture = "rbxassetid://688705835"
- Trail.Enabled = true
- Trail.Rate = "60"
- local BG = Instance.new("BillboardGui")
- BG.Parent = Part
- BG.Size = UDim2.new(10,0,10,0)
- local IL = Instance.new("ImageLabel")
- IL.Parent = BG
- IL.BackgroundTransparency = 1
- IL.Image = "168123595"
- IL.Size = UDim2.new(1,0,1,0)
- local PL = Instance.new("PointLight")
- PL.Parent = Part
- PL.Brightness = 10
- PL.Color = Color3.new(1,1,0)
- PL.Range = 20
- Part.Parent = game.Workspace
- Part.CFrame = (Flare2.CFrame) * CFrame.Angles(1,0,0)
- delay(10,function() Part:Destroy() end)
- table.insert(IgnoreTable,Part)
- end
- flare1()
- flare2()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement