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--[[
- Objects Skipped: 10
- LocalScript: 1
- Script: 7
- UnionOperation: 2
- --]]
- local portal_gun = Instance.new("Tool")
- local part = Instance.new("Part")
- local part_2 = Instance.new("Part")
- local part_3 = Instance.new("Part")
- local part_4 = Instance.new("Part")
- local parttounion_strong_joint = Instance.new("ManualWeld")
- local part_5 = Instance.new("Part")
- local part_6 = Instance.new("Part")
- local part_7 = Instance.new("Part")
- local part_8 = Instance.new("Part")
- local part_9 = Instance.new("Part")
- local particleemitter = Instance.new("ParticleEmitter")
- local part_10 = Instance.new("Part")
- local part_11 = Instance.new("Part")
- local parttounion_strong_joint_2 = Instance.new("ManualWeld")
- local part_12 = Instance.new("Part")
- local surfacegui = Instance.new("SurfaceGui")
- local textlabel = Instance.new("TextLabel")
- local part_13 = Instance.new("Part")
- local buildsound = Instance.new("Sound")
- local open = Instance.new("Sound")
- local color = Instance.new("NumberValue")
- local firsttime = Instance.new("BoolValue")
- local currentcolor = Instance.new("NumberValue")
- local teleporters = Instance.new("Model")
- local red = Instance.new("Part")
- local enabled = Instance.new("IntValue")
- local ori = Instance.new("StringValue")
- local decal = Instance.new("Decal")
- local decal_2 = Instance.new("Decal")
- local blue = Instance.new("Part")
- local enabled_2 = Instance.new("IntValue")
- local ori_2 = Instance.new("StringValue")
- local decal_3 = Instance.new("Decal")
- local decal_4 = Instance.new("Decal")
- portal_gun.GripUp = Vector3.new(1, 0.015, 0)
- portal_gun.GripRight = Vector3.new(0.015, -1, 0)
- portal_gun.Name = "Portal Gun"
- portal_gun.Grip = CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -1.555)
- portal_gun.CanBeDropped = false
- portal_gun.Parent = game.StarterPack
- part.Shape = Enum.PartType.Cylinder
- part.Size = Vector3.new(1.04, 0.3, 0.48)
- part.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- part.Orientation = Vector3.new(-0.02, 90, 0)
- part.BrickColor = BrickColor.new("Pearl")
- part.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- part.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- part.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- part.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- part.Color = Color3.new(0.905882, 0.905882, 0.92549)
- part.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- part.Parent = portal_gun
- part.CFrame = CFrame.new(24.058, 1.129, 7.149) * CFrame.Angles(0, 1.571, 0)
- part_2.Shape = Enum.PartType.Cylinder
- part_2.Size = Vector3.new(0.2, 0.31, 0.2)
- part_2.Orientation = Vector3.new(0, 180, -3.64)
- part_2.Material = Enum.Material.Neon
- part_2.BrickColor = BrickColor.new("Lime green")
- part_2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- part_2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- part_2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- part_2.Color = Color3.new(0, 1, 0)
- part_2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- part_2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- part_2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- part_2.Parent = portal_gun
- part_2.CFrame = CFrame.new(25.217, 1.183, 7.149) * CFrame.Angles(3.142, 0, 3.078)
- part_3.Shape = Enum.PartType.Cylinder
- part_3.Size = Vector3.new(0.2, 0.2, 0.2)
- part_3.Orientation = Vector3.new(11.67, -90, -90)
- part_3.BottomSurface = Enum.SurfaceType.Smooth
- part_3.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- part_3.TopSurface = Enum.SurfaceType.Smooth
- part_3.BrickColor = BrickColor.new("Really black")
- part_3.Parent = portal_gun
- part_3.CFrame = CFrame.new(24.039, 1.194, 7.114) * CFrame.Angles(1.571, -1.367, 0)
- part_4.Size = Vector3.new(0.2, 0.24, 0.99)
- part_4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- part_4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- part_4.Orientation = Vector3.new(0, 180, -3.64)
- part_4.BrickColor = BrickColor.new("Really black")
- part_4.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- part_4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- part_4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- part_4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- part_4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- part_4.Parent = portal_gun
- part_4.CFrame = CFrame.new(25.217, 1.191, 7.164) * CFrame.Angles(3.142, 0, 3.078)
- parttounion_strong_joint.Part1 = union
- parttounion_strong_joint.C0 = CFrame.new(-0.1, 0.12, 0.495) * CFrame.Angles(-1.571, 0, -3.142)
- parttounion_strong_joint.C1 = CFrame.new(-0.334, -0.239, 0.463) * CFrame.Angles(-1.571, 0, -3.142)
- parttounion_strong_joint.Part0 = part_4
- parttounion_strong_joint.Name = "Part-to-Union Strong Joint"
- parttounion_strong_joint.Parent = part_4
- part_5.Shape = Enum.PartType.Cylinder
- part_5.Size = Vector3.new(1.04, 0.3, 0.48)
- part_5.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- part_5.Orientation = Vector3.new(-0.02, 90, 0)
- part_5.BrickColor = BrickColor.new("Pearl")
- part_5.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- part_5.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- part_5.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- part_5.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- part_5.Color = Color3.new(0.905882, 0.905882, 0.92549)
- part_5.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- part_5.Parent = portal_gun
- part_5.CFrame = CFrame.new(24.058, 1.139, 7.149) * CFrame.Angles(0, 1.571, 0)
- part_6.Shape = Enum.PartType.Cylinder
- part_6.Size = Vector3.new(0.2, 0.31, 0.2)
- part_6.Orientation = Vector3.new(0, 180, -3.64)
- part_6.Material = Enum.Material.Neon
- part_6.BrickColor = BrickColor.new("Lime green")
- part_6.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- part_6.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- part_6.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- part_6.Color = Color3.new(0, 1, 0)
- part_6.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- part_6.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- part_6.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- part_6.Parent = portal_gun
- part_6.CFrame = CFrame.new(25.217, 1.183, 6.819) * CFrame.Angles(3.142, 0, 3.078)
- part_7.Shape = Enum.PartType.Cylinder
- part_7.Size = Vector3.new(0.2, 0.47, 0.45)
- part_7.Orientation = Vector3.new(3.47, -90, -90)
- part_7.BottomSurface = Enum.SurfaceType.Smooth
- part_7.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- part_7.TopSurface = Enum.SurfaceType.Smooth
- part_7.BrickColor = BrickColor.new("Really black")
- part_7.Parent = portal_gun
- part_7.CFrame = CFrame.new(24.994, 1.212, 7.139) * CFrame.Angles(1.571, -1.51, 0)
- part_8.Shape = Enum.PartType.Cylinder
- part_8.Size = Vector3.new(0.2, 0.31, 0.2)
- part_8.Orientation = Vector3.new(0, 180, -3.64)
- part_8.Material = Enum.Material.Neon
- part_8.BrickColor = BrickColor.new("Lime green")
- part_8.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- part_8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- part_8.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- part_8.Color = Color3.new(0, 1, 0)
- part_8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- part_8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- part_8.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- part_8.Parent = portal_gun
- part_8.CFrame = CFrame.new(25.217, 1.183, 7.509) * CFrame.Angles(3.142, 0, 3.078)
- part_9.Size = Vector3.new(0.2, 0.2, 0.2)
- part_9.BottomSurface = Enum.SurfaceType.Smooth
- part_9.Orientation = Vector3.new(0, 0, 3.64)
- part_9.Material = Enum.Material.SmoothPlastic
- part_9.Color = Color3.new(0.972549, 0.972549, 0.972549)
- part_9.BrickColor = BrickColor.new("Institutional white")
- part_9.TopSurface = Enum.SurfaceType.Smooth
- part_9.Transparency = 1
- part_9.Parent = portal_gun
- part_9.CFrame = CFrame.new(24.98, 1.464, 7.142) * CFrame.Angles(0, 0, 0.064)
- particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.1), NumberSequenceKeypoint.new(1, 0.1)})
- particleemitter.Speed = NumberRange.new(0)
- particleemitter.LightEmission = 1
- particleemitter.Color = ColorSequence.new(Color3.new(0, 1, 0.164706), Color3.new(0, 1, 0.164706))
- particleemitter.Lifetime = NumberRange.new(0.2)
- particleemitter.Rotation = NumberRange.new(0, 360)
- particleemitter.Texture = "http://www.roblox.com/asset/?id=243098098"
- particleemitter.Rate = 300
- particleemitter.Parent = part_9
- part_10.Shape = Enum.PartType.Cylinder
- part_10.Size = Vector3.new(1.04, 0.3, 0.48)
- part_10.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- part_10.Orientation = Vector3.new(-0.02, 90, 0)
- part_10.BrickColor = BrickColor.new("Pearl")
- part_10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- part_10.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- part_10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- part_10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- part_10.Color = Color3.new(0.905882, 0.905882, 0.92549)
- part_10.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- part_10.Parent = portal_gun
- part_10.CFrame = CFrame.new(24.058, 1.109, 7.149) * CFrame.Angles(0, 1.571, 0)
- part_11.Size = Vector3.new(1.31, 0.27, 1.03)
- part_11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- part_11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- part_11.Orientation = Vector3.new(0, 180, -3.64)
- part_11.BrickColor = BrickColor.new("Pearl")
- part_11.Color = Color3.new(0.905882, 0.905882, 0.92549)
- part_11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- part_11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- part_11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- part_11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- part_11.Parent = portal_gun
- part_11.CFrame = CFrame.new(24.653, 1.15, 7.154) * CFrame.Angles(3.142, 0, 3.078)
- parttounion_strong_joint_2.Part1 = union
- parttounion_strong_joint_2.C0 = CFrame.new(-0.655, 0.135, 0.515) * CFrame.Angles(-1.571, 0, -3.142)
- parttounion_strong_joint_2.C1 = CFrame.new(-0.324, -0.228, 0.493) * CFrame.Angles(-1.571, 0, -3.142)
- parttounion_strong_joint_2.Part0 = part_11
- parttounion_strong_joint_2.Name = "Part-to-Union Strong Joint"
- parttounion_strong_joint_2.Parent = part_11
- part_12.Size = Vector3.new(0.24, 0.27, 0.54)
- part_12.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- part_12.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- part_12.Orientation = Vector3.new(0, 180, -3.64)
- part_12.BrickColor = BrickColor.new("Maroon")
- part_12.Color = Color3.new(0.458824, 0, 0)
- part_12.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- part_12.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- part_12.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- part_12.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- part_12.Parent = portal_gun
- part_12.CFrame = CFrame.new(24.389, 1.155, 7.139) * CFrame.Angles(3.142, 0, 3.078)
- surfacegui.Face = Enum.NormalId.Top
- surfacegui.Parent = part_12
- textlabel.TextWrapped = true
- textlabel.BackgroundTransparency = 1
- textlabel.BackgroundColor3 = Color3.new(1, 1, 1)
- textlabel.TextScaled = true
- textlabel.TextSize = 96
- textlabel.Font = Enum.Font.SciFi
- textlabel.Size = UDim2.new(1, 0, 1, 0)
- textlabel.Text = "C-137"
- textlabel.TextColor3 = Color3.new(1, 0, 0.0156863)
- textlabel.Parent = surfacegui
- part_13.Shape = Enum.PartType.Cylinder
- part_13.Size = Vector3.new(1.04, 0.3, 0.48)
- part_13.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- part_13.Orientation = Vector3.new(-0.02, 90, 0)
- part_13.BrickColor = BrickColor.new("Pearl")
- part_13.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- part_13.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- part_13.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- part_13.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- part_13.Color = Color3.new(0.905882, 0.905882, 0.92549)
- part_13.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- part_13.Parent = portal_gun
- part_13.CFrame = CFrame.new(24.058, 1.119, 7.149) * CFrame.Angles(0, 1.571, 0)
- buildsound.Volume = 1
- buildsound.Name = "BuildSound"
- buildsound.Parent = portal_gun
- open.Volume = 1
- open.Name = "Open"
- open.Parent = portal_gun
- color.Value = 1
- color.Name = "Color"
- color.Parent = portal_gun
- firsttime.Value = true
- firsttime.Name = "FirstTime"
- firsttime.Parent = portal_gun
- currentcolor.Value = 23
- currentcolor.Name = "currentColor"
- currentcolor.Parent = portal_gun
- teleporters.Name = "Teleporters"
- teleporters.Parent = portal_gun
- red.Anchored = true
- red.CanCollide = false
- red.Size = Vector3.new(10, 5, 1)
- red.Orientation = Vector3.new(0, 90, 0)
- red.BottomSurface = Enum.SurfaceType.Smooth
- red.Name = "Red"
- red.Transparency = 1
- red.BrickColor = BrickColor.new("Bright red")
- red.Color = Color3.new(0.768628, 0.156863, 0.109804)
- red.TopSurface = Enum.SurfaceType.Smooth
- red.Parent = teleporters
- red.CFrame = CFrame.new(39.5, 979.3, 26) * CFrame.Angles(0, 1.571, 0)
- enabled.Value = 1
- enabled.Name = "Enabled"
- enabled.Parent = red
- ori.Name = "Ori"
- ori.Parent = red
- decal.Texture = "http://www.roblox.com/asset/?id=2324752"
- decal.Face = Enum.NormalId.Back
- decal.Parent = red
- decal_2.Texture = "http://www.roblox.com/asset/?id=2324752"
- decal_2.Parent = red
- blue.Anchored = true
- blue.CanCollide = false
- blue.Size = Vector3.new(10, 5, 1)
- blue.Orientation = Vector3.new(0, -90, 0)
- blue.BottomSurface = Enum.SurfaceType.Smooth
- blue.Name = "Blue"
- blue.Transparency = 1
- blue.BrickColor = BrickColor.new("Bright blue")
- blue.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- blue.TopSurface = Enum.SurfaceType.Smooth
- blue.Parent = teleporters
- blue.CFrame = CFrame.new(39.5, 974.3, 26) * CFrame.Angles(0, -1.571, 0)
- enabled_2.Value = 1
- enabled_2.Name = "Enabled"
- enabled_2.Parent = blue
- ori_2.Name = "Ori"
- ori_2.Parent = blue
- decal_3.Texture = "http://www.roblox.com/asset/?id=2324750"
- decal_3.Parent = blue
- decal_4.Texture = "http://www.roblox.com/asset/?id=2324750"
- decal_4.Face = Enum.NormalId.Back
- decal_4.Parent = blue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement