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
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Part0 = Instance.new("Part")
- SpecialMesh1 = Instance.new("SpecialMesh")
- Sound2 = Instance.new("Sound")
- ParticleEmitter3 = Instance.new("ParticleEmitter")
- ParticleEmitter4 = Instance.new("ParticleEmitter")
- ParticleEmitter5 = Instance.new("ParticleEmitter")
- ParticleEmitter6 = Instance.new("ParticleEmitter")
- Part0.Name = "Core"
- Part0.Parent = Tool0
- Part0.CFrame = CFrame.new(128.771667, 2.30999804, -65.8542404, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part0.Position = Vector3.new(128.771667, 2.30999804, -65.8542404)
- Part0.Color = Color3.new(0.960784, 0.803922, 0.188235)
- Part0.Size = Vector3.new(0.949999988, 0.949999988, 0.949999988)
- Part0.Anchored = true
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.BrickColor = BrickColor.new("Bright yellow")
- Part0.CanCollide = false
- Part0.Material = Enum.Material.Neon
- Part0.TopSurface = Enum.SurfaceType.Smooth
- Part0.brickColor = BrickColor.new("Bright yellow")
- Part0.FormFactor = Enum.FormFactor.Custom
- Part0.formFactor = Enum.FormFactor.Custom
- SpecialMesh1.Parent = Part0
- SpecialMesh1.MeshType = Enum.MeshType.Sphere
- Sound2.Parent = Part0
- Sound2.SoundId = "http://www.roblox.com/asset/?id= 2974000"
- ParticleEmitter3.Name = "Rays"
- ParticleEmitter3.Parent = Part0
- ParticleEmitter3.Speed = NumberRange.new(0, 0)
- ParticleEmitter3.Rotation = NumberRange.new(120, 240)
- ParticleEmitter3.Color = ColorSequence.new(Color3.new(1, 0.784314, 0),Color3.new(1, 0.784314, 0))
- ParticleEmitter3.LightEmission = 1
- ParticleEmitter3.Texture = "rbxassetid://1053548563"
- 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)
- ParticleEmitter3.Size = NumberSequence.new(0,5.4999995231628)
- ParticleEmitter3.Lifetime = NumberRange.new(1, 1)
- ParticleEmitter3.LockedToPart = true
- ParticleEmitter3.Rate = 4
- ParticleEmitter3.RotSpeed = NumberRange.new(-15, 15)
- ParticleEmitter4.Name = "Rays"
- ParticleEmitter4.Parent = Part0
- ParticleEmitter4.Speed = NumberRange.new(0, 0)
- ParticleEmitter4.Rotation = NumberRange.new(-180, 180)
- ParticleEmitter4.Color = ColorSequence.new(Color3.new(1, 0.784314, 0),Color3.new(1, 0.784314, 0))
- ParticleEmitter4.LightEmission = 1
- ParticleEmitter4.Texture = "rbxassetid://1084975295"
- ParticleEmitter4.Transparency = NumberSequence.new(1,0.69999998807907,1)
- 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)
- ParticleEmitter4.Lifetime = NumberRange.new(1, 1)
- ParticleEmitter4.LockedToPart = true
- ParticleEmitter4.Rate = 4
- ParticleEmitter4.RotSpeed = NumberRange.new(-50, 50)
- ParticleEmitter5.Name = "Glow"
- ParticleEmitter5.Parent = Part0
- ParticleEmitter5.Speed = NumberRange.new(0, 0)
- ParticleEmitter5.Color = ColorSequence.new(Color3.new(1, 0.784314, 0),Color3.new(1, 0.784314, 0))
- ParticleEmitter5.LightEmission = 1
- ParticleEmitter5.Texture = "rbxassetid://867619398"
- ParticleEmitter5.Transparency = NumberSequence.new(1,0.69999998807907,1)
- ParticleEmitter5.Size = NumberSequence.new(3,3)
- ParticleEmitter5.Lifetime = NumberRange.new(1, 1)
- ParticleEmitter5.LockedToPart = true
- ParticleEmitter5.Rate = 4
- ParticleEmitter6.Name = "Bubble"
- ParticleEmitter6.Parent = Part0
- ParticleEmitter6.Speed = NumberRange.new(0, 0)
- ParticleEmitter6.Rotation = NumberRange.new(-180, 180)
- ParticleEmitter6.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(1, 0.815686, 0.254902),Color3.new(1, 1, 1))
- ParticleEmitter6.LightEmission = 1
- ParticleEmitter6.Texture = "rbxassetid://1084955488"
- ParticleEmitter6.Transparency = NumberSequence.new(1,0.69999998807907,1)
- ParticleEmitter6.ZOffset = 3
- ParticleEmitter6.Size = NumberSequence.new(4,6,10)
- ParticleEmitter6.Lifetime = NumberRange.new(1, 1)
- ParticleEmitter6.LockedToPart = true
- ParticleEmitter6.Rate = 6
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Backpack
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement