Advertisement
Surrealism

Untitled

Nov 23rd, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.86 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. Part0 = Instance.new("Part")
  24. SpecialMesh1 = Instance.new("SpecialMesh")
  25. Sound2 = Instance.new("Sound")
  26. ParticleEmitter3 = Instance.new("ParticleEmitter")
  27. ParticleEmitter4 = Instance.new("ParticleEmitter")
  28. ParticleEmitter5 = Instance.new("ParticleEmitter")
  29. ParticleEmitter6 = Instance.new("ParticleEmitter")
  30. Part0.Name = "Core"
  31. Part0.Parent = Tool0
  32. Part0.CFrame = CFrame.new(128.771667, 2.30999804, -65.8542404, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  33. Part0.Position = Vector3.new(128.771667, 2.30999804, -65.8542404)
  34. Part0.Color = Color3.new(0.960784, 0.803922, 0.188235)
  35. Part0.Size = Vector3.new(0.949999988, 0.949999988, 0.949999988)
  36. Part0.Anchored = true
  37. Part0.BottomSurface = Enum.SurfaceType.Smooth
  38. Part0.BrickColor = BrickColor.new("Bright yellow")
  39. Part0.CanCollide = false
  40. Part0.Material = Enum.Material.Neon
  41. Part0.TopSurface = Enum.SurfaceType.Smooth
  42. Part0.brickColor = BrickColor.new("Bright yellow")
  43. Part0.FormFactor = Enum.FormFactor.Custom
  44. Part0.formFactor = Enum.FormFactor.Custom
  45. SpecialMesh1.Parent = Part0
  46. SpecialMesh1.MeshType = Enum.MeshType.Sphere
  47. Sound2.Parent = Part0
  48. Sound2.SoundId = "http://www.roblox.com/asset/?id= 2974000"
  49. ParticleEmitter3.Name = "Rays"
  50. ParticleEmitter3.Parent = Part0
  51. ParticleEmitter3.Speed = NumberRange.new(0, 0)
  52. ParticleEmitter3.Rotation = NumberRange.new(120, 240)
  53. ParticleEmitter3.Color = ColorSequence.new(Color3.new(1, 0.784314, 0),Color3.new(1, 0.784314, 0))
  54. ParticleEmitter3.LightEmission = 1
  55. ParticleEmitter3.Texture = "rbxassetid://1053548563"
  56. ParticleEmitter3.Transparency = NumberSequence.new(0,5.2658066351796e-07,1.6850581232575e-05,0.00012795910879504,0.00053921859944239,0.0016455645672977,0.0040946914814413,0.0088502410799265,0.017254995182157,0.031094063073397,0.052658066153526,0.084806345403194,0.13103012740612,0.19551572203636,0.28320771455765,0.39987221360207,0.55215984582901,0.74766927957535,0.99501001834869,1)
  57. ParticleEmitter3.Size = NumberSequence.new(0,5.4999995231628)
  58. ParticleEmitter3.Lifetime = NumberRange.new(1, 1)
  59. ParticleEmitter3.LockedToPart = true
  60. ParticleEmitter3.Rate = 4
  61. ParticleEmitter3.RotSpeed = NumberRange.new(-15, 15)
  62. ParticleEmitter4.Name = "Rays"
  63. ParticleEmitter4.Parent = Part0
  64. ParticleEmitter4.Speed = NumberRange.new(0, 0)
  65. ParticleEmitter4.Rotation = NumberRange.new(-180, 180)
  66. ParticleEmitter4.Color = ColorSequence.new(Color3.new(1, 0.784314, 0),Color3.new(1, 0.784314, 0))
  67. ParticleEmitter4.LightEmission = 1
  68. ParticleEmitter4.Texture = "rbxassetid://1084975295"
  69. ParticleEmitter4.Transparency = NumberSequence.new(1,0.69999998807907,1)
  70. ParticleEmitter4.Size = NumberSequence.new(0,1.2418006658554,2.2236206531525,2.9886019229889,3.5748257637024,4.0156278610229,4.339916229248,4.5724840164185,4.7343292236328,4.8429670333862,4.9127492904663,4.9551763534546,4.9792170524597,4.9916229248047,4.9972424507141,4.9993405342102,4.9999117851257,4.9999971389771,5,5)
  71. ParticleEmitter4.Lifetime = NumberRange.new(1, 1)
  72. ParticleEmitter4.LockedToPart = true
  73. ParticleEmitter4.Rate = 4
  74. ParticleEmitter4.RotSpeed = NumberRange.new(-50, 50)
  75. ParticleEmitter5.Name = "Glow"
  76. ParticleEmitter5.Parent = Part0
  77. ParticleEmitter5.Speed = NumberRange.new(0, 0)
  78. ParticleEmitter5.Color = ColorSequence.new(Color3.new(1, 0.784314, 0),Color3.new(1, 0.784314, 0))
  79. ParticleEmitter5.LightEmission = 1
  80. ParticleEmitter5.Texture = "rbxassetid://867619398"
  81. ParticleEmitter5.Transparency = NumberSequence.new(1,0.69999998807907,1)
  82. ParticleEmitter5.Size = NumberSequence.new(3,3)
  83. ParticleEmitter5.Lifetime = NumberRange.new(1, 1)
  84. ParticleEmitter5.LockedToPart = true
  85. ParticleEmitter5.Rate = 4
  86. ParticleEmitter6.Name = "Bubble"
  87. ParticleEmitter6.Parent = Part0
  88. ParticleEmitter6.Speed = NumberRange.new(0, 0)
  89. ParticleEmitter6.Rotation = NumberRange.new(-180, 180)
  90. ParticleEmitter6.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(1, 0.815686, 0.254902),Color3.new(1, 1, 1))
  91. ParticleEmitter6.LightEmission = 1
  92. ParticleEmitter6.Texture = "rbxassetid://1084955488"
  93. ParticleEmitter6.Transparency = NumberSequence.new(1,0.69999998807907,1)
  94. ParticleEmitter6.ZOffset = 3
  95. ParticleEmitter6.Size = NumberSequence.new(4,6,10)
  96. ParticleEmitter6.Lifetime = NumberRange.new(1, 1)
  97. ParticleEmitter6.LockedToPart = true
  98. ParticleEmitter6.Rate = 6
  99. for i,v in pairs(mas:GetChildren()) do
  100. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  101. pcall(function() v:MakeJoints() end)
  102. end
  103. mas:Destroy()
  104. for i,v in pairs(cors) do
  105. spawn(function()
  106. pcall(v)
  107. end)
  108. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement