miissso

fdgd

Jul 4th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.21 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
  6. --Converted with ttyyuu12345's model to script plugin v4
  7. function sandbox(var,func)
  8. local env = getfenv(func)
  9. local newenv = setmetatable({},{
  10. __index = function(self,k)
  11. if k=="script" then
  12. return var
  13. else
  14. return env[k]
  15. end
  16. end,
  17. })
  18. setfenv(func,newenv)
  19. return func
  20. end
  21. cors = {}
  22. mas = Instance.new("Model",game:GetService("Lighting"))
  23. Model0 = Instance.new("Model")
  24. Humanoid1 = Instance.new("Humanoid")
  25. Part2 = Instance.new("Part")
  26. CylinderMesh3 = Instance.new("CylinderMesh")
  27. Part4 = Instance.new("Part")
  28. CylinderMesh5 = Instance.new("CylinderMesh")
  29. Script6 = Instance.new("Script")
  30. Model0.Name = " "
  31. Model0.Parent = mas
  32. Humanoid1.Parent = Model0
  33. Humanoid1.Health = 0
  34. Humanoid1.MaxHealth = 0
  35. Part2.Parent = Model0
  36. Part2.BrickColor = BrickColor.new("Dark stone grey")
  37. Part2.Reflectance = 0.5
  38. Part2.Anchored = true
  39. Part2.Size = Vector3.new(5, 1.20000005, 5)
  40. Part2.CFrame = CFrame.new(-26.8999996, 0.600005269, -16.4399662, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  41. Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  42. Part2.Position = Vector3.new(-26.8999996, 0.600005269, -16.4399662)
  43. Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  44. CylinderMesh3.Parent = Part2
  45. Part4.Name = "Head"
  46. Part4.Parent = Model0
  47. Part4.BrickColor = BrickColor.new("Really red")
  48. Part4.Anchored = true
  49. Part4.Size = Vector3.new(5, 1.20000005, 5)
  50. Part4.CFrame = CFrame.new(-26.8999996, 1.80000603, -16.4399662, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  51. Part4.Color = Color3.new(1, 0, 0)
  52. Part4.Position = Vector3.new(-26.8999996, 1.80000603, -16.4399662)
  53. Part4.Color = Color3.new(1, 0, 0)
  54. CylinderMesh5.Parent = Part4
  55. CylinderMesh5.Scale = Vector3.new(0.75, 1, 0.75)
  56. CylinderMesh5.Scale = Vector3.new(0.75, 1, 0.75)
  57. Script6.Parent = Part4
  58. table.insert(cors,sandbox(Script6,function()
  59. local ONOES = Instance.new("Sound")
  60. ONOES.SoundId = "rbxassetid://199837904"
  61. ONOES.Volume = 10
  62. ONOES.EmitterSize = math.huge
  63. ONOES.Looped = false
  64. ONOES.archivable = false
  65. ONOES.Parent = workspace
  66.  
  67. Sound.SoundId = "http://www.roblox.com/asset?id=2248511"
  68. Sound.PlaybackSpeed = 0.2
  69. Sound.Playing = true
  70. Sound.Volume = 10
  71. end
Add Comment
Please, Sign In to add comment