Advertisement
lafur

Untitled

Aug 25th, 2018
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.57 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. 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{"Fun Punch - Bag Raiders":{"start_sound":"http:\/\/www.roblox.com\/asset\/?id=142084004","chanceofexplosion":1,"range":10,"startupdelay":7.2,"mass_range":200,"colors":["Light blue","Pastel light blue"],"wubdelay_max":70,"speed":75,"wubdelay_min":50,"running_sound":"http:\/\/www.roblox.com\/asset\/?id=142084016","wubratio":0.3},
  6.  
  7. "Vindicate - Datsik & Excision":{"start_sound":"http:\/\/www.roblox.com\/asset\/?id=141698300","chanceofexplosion":2,"range":15,"startupdelay":2.2,"mass_range":200,"colors":["Really red","Really blue"],"wubdelay_max":100,"speed":100,"wubdelay_min":40,"running_sound":"http:\/\/www.roblox.com\/asset\/?id=141698281","wubratio":0.2},
  8.  
  9. "Valkyrie - Savant":{"start_sound":"http:\/\/www.roblox.com\/asset\/?id=142074300","chanceofexplosion":2,"range":15,"startupdelay":14.7,"mass_range":200,"colors":["Bright violet","Royal purple"],"wubdelay_max":45,"speed":100,"wubdelay_min":25,"running_sound":"http:\/\/www.roblox.com\/asset\/?id=142074306","wubratio":0.2},
  10.  
  11. "Polyhymnia - Scout McMillan":{"start_sound":"http:\/\/www.roblox.com\/asset\/?id=142053574","chanceofexplosion":4,"range":6,"startupdelay":1.75,"mass_range":200,"colors":["Bright violet","Royal purple","Lime green"],"wubdelay_max":50,"speed":90,"wubdelay_min":40,"running_sound":"http:\/\/www.roblox.com\/asset\/?id=142053584","wubratio":0.2},
  12.  
  13. "Jawn - Tristam":{"start_sound":"http:\/\/www.roblox.com\/asset\/?id=142523485","chanceofexplosion":3,"range":10,"startupdelay":30,"mass_range":200,"colors":["Really red","Really blue","Deep orange","New Yeller"],"wubdelay_max":50,"speed":100,"wubdelay_min":30,"running_sound":"http:\/\/www.roblox.com\/asset\/?id=142523507","wubratio":0.2},
  14.  
  15. "The Soldier Song - TF2":{"start_sound":"http:\/\/www.roblox.com\/asset\/?id=131384028","chanceofexplosion":2,"range":10,"startupdelay":1,"mass_range":200,"colors":["Really red","Really blue"],"wubdelay_max":30,"speed":100,"wubdelay_min":20,"running_sound":"http:\/\/www.roblox.com\/asset\/?id=144659736","wubratio":0.2},
  16.  
  17. "Finish Him! - Louder":{"start_sound":"http:\/\/www.roblox.com\/asset\/?id=156238628","chanceofexplosion":2,"range":10,"startupdelay":14.5,"mass_range":200,"colors":["Really blue","Bright blue","Toothpaste",],"wubdelay_max":30,"speed":100,"wubdelay_min":20,"running_sound":"http:\/\/www.roblox.com\/asset\/?id=156238639","wubratio":0.2},
  18.  
  19. "The Arcade - Savant":{"start_sound":"http:\/\/www.roblox.com\/asset\/?id=156698460","chanceofexplosion":2,"range":10,"startupdelay":2,"mass_range":200,"colors":["Bright blue","Bright red","White","Bright violet","Toothpaste","Bright yellow","Bright green",],"wubdelay_max":45,"speed":100,"wubdelay_min":20,"running_sound":"http:\/\/www.roblox.com\/asset\/?id=156698492","wubratio":0.2},
  20.  
  21. "Professional Griefers":{"start_sound":"http:\/\/www.roblox.com\/asset\/?id=157908443","chanceofexplosion":2,"range":10,"startupdelay":14.5,"mass_range":200,"colors":["Bright blue","Lime green","Bright green"],"wubdelay_max":45,"speed":100,"wubdelay_min":20,"running_sound":"http:\/\/www.roblox.com\/asset\/?id=157908470","wubratio":0.2},
  22.  
  23. "Yo! Ho! And a Bottle of Bass":{"start_sound":"http:\/\/www.roblox.com\/asset\/?id=159756856","chanceofexplosion":2,"range":10,"startupdelay":5,"mass_range":200,"colors":["Bright blue","Toothpaste","Really blue"],"wubdelay_max":25,"speed":150,"wubdelay_min":15,"running_sound":"http:\/\/www.roblox.com\/asset\/?id=159756859","wubratio":0.2},
  24.  
  25. "Pika Girl - S3RL":{"start_sound":"http:\/\/www.roblox.com\/asset\/?id=160605561","chanceofexplosion":2,"range":10,"startupdelay":6,"mass_range":200,"colors":["White","Bright yellow","Black"],"wubdelay_max":25,"speed":150,"wubdelay_min":15,"running_sound":"http:\/\/www.roblox.com\/asset\/?id=160605583","wubratio":0.2},
  26.  
  27. "Astrocat - Pixl":{"start_sound":"http:\/\/www.roblox.com\/asset\/?id=162583710","chanceofexplosion":2,"range":10,"startupdelay":14.3,"mass_range":200,"colors":["Black","Really red","Bright red","White","Light blue"],"wubdelay_max":25,"speed":100,"wubdelay_min":20,"running_sound":"http:\/\/www.roblox.com\/asset\/?id=162583721","wubratio":0.2},
  28.  
  29. "Starfish - Savant":{"start_sound":"http:\/\/www.roblox.com\/asset\/?id=164451474","chanceofexplosion":2,"range":10,"startupdelay":19.03,"mass_range":200,"colors":["Really green","Black","White","Really black","Bright red","Toothpaste","Bright yellow","Bright purple","Bright green","Pink"],"wubdelay_max":30,"speed":80,"wubdelay_min":15,"running_sound":"http:\/\/www.roblox.com\/asset\/?id=164451483","wubratio":0.2},
  30.  
  31. "World Summit - Modulation":{"start_sound":"http:\/\/www.roblox.com\/asset\/?id=169534633","chanceofexplosion":2,"range":15,"startupdelay":6,"mass_range":200,"colors":["Bright blue","Really blue","Cyan","Toothpaste"],"wubdelay_max":30,"speed":85,"wubdelay_min":15,"running_sound":"http:\/\/www.roblox.com\/asset\/?id=169534640","wubratio":0.2},
  32.  
  33. "Dubsidia - Elekktroshockk":{"start_sound":"http:\/\/www.roblox.com\/asset\/?id=169713790","chanceofexplosion":2,"range":15,"startupdelay":9.3,"mass_range":200,"colors":["Bright yellow","New Yeller","Cool yellow"],"wubdelay_max":25,"speed":100,"wubdelay_min":15,"running_sound":"http:\/\/www.roblox.com\/asset\/?id=169713801","wubratio":0.2}
  34.  
  35.  
  36. "Tristam - I Remember" :{"start_sound":"http:\/\/www.roblox.com\/asset\/?id=144631042","chanceofexplosion":2,"range:15,"startupdelay":6,"mass_range":200,"colors":["Really blue","Bright blue","Cyan","Toothpaste"],"wubdelay_max":30,:"speed":90,"wubdelay_min":15,"running_sound":"http:\/\/www.roblox.com\/asset\/?id=144631042","wubratio":0.2}
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement