Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This script has been converted to FE by iPxter
- 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
- do
- print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
- script.Parent = Player.Character
- --RemoteEvent for communicating
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- --Fake event to make stuff like Mouse.KeyDown work
- local function fakeEvent()
- local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
- t.connect = t.Connect
- return t
- end
- --Creating fake input objects with fake variables
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent and t.Function then
- t.Function(...)
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=Player then return end
- if io.isMouse then
- m.Target = io.Target
- m.Hit = io.Hit
- else
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return m:TrigEvent(b and "Button1Down" or "Button1Up")
- end
- for _,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[
- local Player = game:GetService("Players").LocalPlayer
- local Event = script:WaitForChild("UserInput_Event")
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local Mouse = Player:GetMouse()
- local h,t
- --Give the server mouse data 30 times every second, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- while wait(1/30) do
- if h~=Mouse.Hit or t~=Mouse.Target then
- h,t=Mouse.Hit,Mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- end]==],Player.Character)
- Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
- end
- char = owner
- print("Epix Forces! WRYYYYYY Boost!!!")
- local gui = Instance.new("ScreenGui",owner)
- local text = Instance.new("TextLabel",gui)
- text.Position = UDim2.new(0.003, 0,0.781, 0)
- text.Size = UDim2.new(0.203, 0,0.211, 0)
- text.BackgroundTransparency = 1
- text.TextColor3 = Color3.new(1,1,1)
- text.TextScaled = true
- text.Text = "Speed: 0"
- char.Humanoid.Animator:Destroy()
- char.Animate:Destroy()
- char.HumanoidRootPart.RootJoint.C1 = CFrame.new(0,0,0)
- char.Torso["Right Hip"].C1 = CFrame.new(0,0,0)
- for i = 0,1 ,0.03 do
- char.HumanoidRootPart.RootJoint.C0 = char.HumanoidRootPart.RootJoint.C0:lerp(CFrame.new(0, 0.107334137, -0.173822403, 1, 0, 0, 0, 0.940232992, -0.340532184, 0, 0.340532184, 0.940232992):inverse(),i)
- char.Torso["Right Hip"].C0 = char.Torso["Right Hip"].C0:lerp(CFrame.new(0.5, -1.87479305, -0.59992981, 1, 0, 0, 0, 0.916532993, -0.399959058, 0, 0.399958998, 0.916533113),i)
- game:GetService("RunService").RenderStepped:wait()
- end
- char.Humanoid.WalkSpeed = 0
- local boost = Instance.new("Sound",char)
- boost.SoundId = "rbxassetid://1654098134"
- boost.Volume = 4
- boost.Looped = true
- boost:Play()
- coroutine.wrap(function()
- while true do
- wait(0.01)
- if boost.Parent == nil then
- boost.Parent = char
- end
- end
- end)()
- wait(5)
- local boostp = Instance.new("Part",char)
- boostp.BrickColor = BrickColor.new("White")
- boostp.Transparency = 0.5
- local boostm = Instance.new("FileMesh",boostp)
- boostm.MeshId = "http://www.roblox.com/asset/?id=16150864"
- boostm.Scale = Vector3.new(5,5,5)
- local boostw = Instance.new("Weld",boostp)
- boostw.Part0 = boostp
- boostw.Part1 = char.Torso
- boostw.C0 = CFrame.new(0.00974273682, 0.00136947632, -0.455072403, 0.998052895, -0.024946643, 0.0571669154, 0.0573021285, 0.00473886728, -0.998345733, 0.0246344674, 0.999677718, 0.00615915656)
- local booste = Instance.new("Sound",char)
- booste.SoundId = "rbxassetid://1377172167"
- booste.Looped = true
- booste.Volume = 2
- booste:Play()
- local boost2 = Instance.new("Sound",char)
- boost2.Volume = 4
- boost2.SoundId = "rbxassetid://1377172167"
- boost2:Play()
- lhandweld = char.Torso["Left Shoulder"]
- rhandweld = char.Torso["Right Shoulder"]
- llegweld = char.Torso["Left Hip"]
- rlegweld = char.Torso["Right Hip"]
- lhandweld.C1 = CFrame.new(0,0,0)
- rhandweld.C1 = CFrame.new(0,0,0)
- llegweld.C1 = CFrame.new(0,0,0)
- rlegweld.C1 = CFrame.new(0,0,0)
- local trail = Instance.new("Trail",char)
- trail.Color = ColorSequence.new(boostp.BrickColor.Color)
- trail.Lifetime = 0.5
- local attachment0 = Instance.new("Attachment",char.Head)
- attachment0.Name = "TrailAttachment0"
- local attachment1 = Instance.new("Attachment",char.HumanoidRootPart)
- attachment1.Name = "TrailAttachment1"
- trail.Attachment0 = attachment0
- trail.Attachment1 = attachment1
- local newvel = Instance.new("BodyVelocity")
- newvel.Parent = char.Torso
- newvel.maxForce = Vector3.new(100000,3000,100000)
- newvel.velocity = newvel.Parent.CFrame.lookVector*100
- newvel.Name = "SuperRun"
- char.Torso.Touched:connect(function(part)
- local human = part.Parent:FindFirstChildOfClass("Humanoid")
- if human then
- human.Parent:BreakJoints()
- end
- end)
- coroutine.wrap(function()
- while true do
- wait(0.01)
- for i = 1,40 do
- wait()
- newvel.velocity = newvel.Parent.CFrame.lookVector* math.random(100,1000)
- text.Text = "Speed: " .. math.random(100,1000)
- end
- end
- end)()
- while true do
- wait(0.01)
- char.Humanoid.WalkSpeed = math.random(100,200)
- for i = 0,1 ,0.3 do
- lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.273401737, 0.445701599, 1, 0, 0, 0, 0.453197539, 0.891410112, 0, -0.891410232, 0.453197569),i)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.53495121, -0.844882965, 1, 0, 0, 0, 0.534950972, -0.844883084, 0, 0.844883084, 0.534951091),i)
- rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.313892841, 0.464073181, 1, 0, 0, 0, 0.37221545, 0.928146303, 0, -0.928146362, 0.372215509),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.59347343, 0.804859161, 1, 0, 0, 0, 0.593472898, 0.804853976, 0, -0.804854035, 0.593472958),i)
- game:GetService("RunService").RenderStepped:wait()
- end
- for i = 0,1 ,0.3 do
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.63476276, 0.772708893, 1, 0, 0, 0, 0.63476181, 0.77270782, 0, -0.77270788, 0.63476187),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.49659729, -0.867980957, 1, 0, 0, 0, 0.496596336, -0.867981553, 0, 0.867981672, 0.496596336),i)
- game:GetService("RunService").RenderStepped:wait()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement