Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- 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
- plr = game.Players.LocalPlayer
- repeat wait() until plr.Character
- char = plr.Character
- local fileselect = Instance.new("Sound",char)
- fileselect.SoundId = "rbxassetid://188988010"
- fileselect.Volume = 4
- fileselect.Looped = true
- fileselect:Play()
- local yAhOo = Instance.new("Sound",char)
- yAhOo.SoundId = "rbxassetid://1555685807"
- yAhOo.Volume = 10
- PlrGui = plr.PlayerGui
- NewInstance = function(instance,parent,properties)
- local inst = Instance.new(instance)
- inst.Parent = parent
- if(properties)then
- for i,v in next, properties do
- pcall(function() inst[i] = v end)
- end
- end
- return inst;
- end
- local gui = NewInstance("ScreenGui",PlrGui,{})
- local txt = NewInstance("TextLabel",gui,{TextStrokeTransparency=.3,TextStrokeColor3=Color3.fromRGB(32, 205, 255),Font=Enum.Font.Arcade,BackgroundTransparency=1,Size=UDim2.new(.48,0,.1,0),Position=UDim2.new(.279,0,.842,0),Text='SPD:',TextColor3=Color3.fromRGB(35, 205, 255),TextScaled=true,TextWrapped=true,})
- local neck = Instance.new("Weld",char)
- neck.Part0 = char.Torso
- neck.Part1 = char.Head
- neck.C0 = CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- local human2 = Instance.new("Weld",char)
- human2.Part0 = char.HumanoidRootPart
- human2.Part1 = char.Torso
- human2co = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- necc = CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
- local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
- rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
- rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
- rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
- local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
- local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
- lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
- lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
- lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
- local llegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
- llegweld.Part0 = game.Players.LocalPlayer.Character.Torso
- llegweld.Part1 = game.Players.LocalPlayer.Character["Left Leg"]
- llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) * CFrame.new(0,-1,0)
- local rlegclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
- game.Players.LocalPlayer.Character.Torso["Right Hip"]:Remove()
- local rlegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
- rlegweld.Part0 = game.Players.LocalPlayer.Character.Torso
- rlegweld.Part1 = game.Players.LocalPlayer.Character["Right Leg"]
- rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) * CFrame.new(0,-1,0)
- holding = false
- bljing = false
- spd = 16
- function PlayAnim(animation)
- if animation == "BLJ" then
- bljing = true
- for i = 0,1 ,0.3 do
- lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.53661108, -0.480926514, 0.999894381, -0.0142589128, -0.00281370035, -0.000413000147, 0.165641978, -0.986185849, 0.0145280054, 0.986082852, 0.165618598),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.50725269, -0.75819397, 1, 0, 0, 0, 0.665795922, -0.746133924, 0, 0.746133924, 0.665795922),i)
- rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.426974773, -0.494689941, 1, 0, 0, 0, 0.210759029, -0.977538109, 0, 0.977538109, 0.210759029),i)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.61069536, -0.782699585, 1, 0, 0, 0, 0.730954409, -0.682426393, 0, 0.682426393, 0.730954409),i)
- game:GetService("RunService").RenderStepped:wait()
- end
- yAhOo:Play()
- for i = 0,1 ,0.3 do
- rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.426974535, -0.494689941, 1, 0, 0, 0, -0.0134780025, -0.999909222, 0, 0.999909222, -0.0134780025),i)
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -0.987535715, -0.751152039, 1, 0, 0, 0, -0.0135450047, -0.999908328, 0, 0.999908328, -0.0135450047),i)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.06637633, -0.78163147, 1, 0, 0, 0, -0.00196000026, -0.999998093, 0, 0.999998093, -0.00196000026),i)
- lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.536610603, -0.480926514, 0.999894381, -0.0145326061, -0.000187743455, -0.000411000132, -0.0153610073, -0.999881983, 0.0145280054, 0.999776483, -0.0153653575),i)
- game:GetService("RunService").RenderStepped:wait()
- end
- end
- if animation == "NoAnims" then
- bljing = false
- spd = 16
- for i = 0,1 ,0.03 do
- rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i)
- llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i)
- lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i)
- rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i)
- end
- end
- end
- function BackwardsLongJump()
- if not holding then
- holding = true
- while holding == true do
- PlayAnim("BLJ")
- end
- PlayAnim("NoAnims")
- end
- end
- mouse = plr:GetMouse()
- mouse.KeyDown:connect(function(k)
- if k == "e" then
- BackwardsLongJump()
- end
- end)
- mouse.KeyUp:connect(function(k)
- if k == "e" then
- holding = false
- end
- end)
- while true do
- if spd > 16 then
- txt.Text = "SPD:" .. spd
- else
- txt.Text = "SPD:" .. spd
- end
- if bljing then
- spd = spd + 1
- else
- spd = 16
- end
- char.Humanoid.WalkSpeed = spd
- game:GetService("RunService").RenderStepped:wait()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement