Run it
Copy the script and paste it into your executor.
Players = :()
RunService = :()
player = Players.LocalPlayer
()
gethui
ok, res = (gethui)
ok res res
player:(, ) :()
SOUNDS = {
OPEN = ,
TELEPORT = ,
CLOSE =
}
(soundId, volume, pitch, parent)
(()
sound = .()
sound.SoundId = .. (soundId)
sound.Volume = volume
sound.Pitch = pitch
sound.Parent = parent
sound:()
:():(sound, )
)
(tool)
handle = .()
handle.Name =
handle.Size = .(, , )
handle.Transparency =
handle.Parent = tool
tool.PrimaryPart = handle
(size, cframe, color, material, shape)
p = .()
p.Size = size
p.Color = color .(, , )
p.Material = material .Material.SmoothPlastic
p.CanCollide =
p.Massless =
shape p.Shape = shape
p.Parent = tool
weld = .()
weld.Part0 = handle
weld.Part1 = p
weld.Parent = p
p.CFrame = handle.CFrame * cframe
p
(.(, , ), .(, , -), .(, , ))
grip = (.(, , ), .(, -, ) * .(, , .()) * .(.(-), , ), .(, , ), .Material.SmoothPlastic, .PartType.Cylinder)
(.(, , ), .(, , ), .(, , ))
(.(, , ), .(, , ), .(, , ), .Material.Glass)
verticalCylinderRotation = .(, , .())
(.(, , ), .(, , -) * verticalCylinderRotation, .(, , ), .Material.SmoothPlastic, .PartType.Cylinder)
bulbGlass = (.(, , ), .(, , -) * verticalCylinderRotation, .(, , ), .Material.Glass, .PartType.Cylinder)
bulbGlass.Transparency =
core = (.(, , ), .(, , -), .(, , ), .Material.Neon, .PartType.Ball)
light = .(, core)
light.Color = .(, , )
light.Range =
light.Brightness =
coreSparks = .(, core)
coreSparks.Texture =
coreSparks.Color = ColorSequence.(.(, , ))
coreSparks.Size = NumberSequence.(, )
coreSparks.Lifetime = NumberRange.(, )
coreSparks.Rate =
coreSparks.Speed = NumberRange.(, )
(.(, , ), .(, , -), .(, , ))
i = -,
lens = (.(, , ), .(i * , , -) * verticalCylinderRotation, .(, , ), .Material.Neon, .PartType.Cylinder)
()
bp = player:()
bp
bp:() (player.Character player.Character:())
tool = .()
tool.Name =
tool.Grip = .(, , )
(tool)
tool.Parent = bp
.(()
.()
()
)
player.CharacterAdded:(()
.()
()
)
guiTarget = ()
guiTarget:()
guiTarget.RickPortalMenuV16_Fix:()
screenGui = .()
screenGui.Name =
screenGui.ResetOnSpawn =
screenGui.Parent = guiTarget
frame = .(, screenGui)
frame.Size = .(, , , )
frame.Position = .(, , , )
frame.BackgroundColor3 = .(, , )
frame.ClipsDescendants =
frame.Active =
frame.Draggable =
frame.Visible =
.(, frame).CornerRadius = .(, )
title = .(, frame)
title.Size = .(, , , )
title.Text =
title.TextColor3 = .(, , )
title.BackgroundColor3 = .(, , )
title.BackgroundTransparency =
title.Font = .Font.SourceSansBold
title.TextSize =
title.TextXAlignment = .TextXAlignment.Left
.(, title).CornerRadius = .(, )
btnMinimize = .(, title)
btnMinimize.Size = .(, , , )
btnMinimize.Position = .(, -, , )
btnMinimize.Text =
btnMinimize.TextColor3 = .(, , )
btnMinimize.BackgroundColor3 = .(, , )
btnMinimize.Font = .Font.SourceSansBold
btnMinimize.TextSize =
.(, btnMinimize).CornerRadius = .(, )
contentFrame = .(, frame)
contentFrame.Size = .(, , , -)
contentFrame.Position = .(, , , )
contentFrame.BackgroundTransparency =
isMinimized =
btnMinimize.MouseButton1Click:(()
isMinimized = isMinimized
isMinimized
frame:(.(, , , ), .EasingDirection.Out, .EasingStyle.Quad, , )
contentFrame.Visible =
btnMinimize.Text =
frame:(.(, , , ), .EasingDirection.Out, .EasingStyle.Quad, , )
.()
contentFrame.Visible =
btnMinimize.Text =
)
coordDisplay = .(, contentFrame)
coordDisplay.Size = .(, , , )
coordDisplay.Position = .(, , , )
coordDisplay.Text =
coordDisplay.TextColor3 = .(, , )
coordDisplay.BackgroundTransparency =
coordDisplay.TextSize =
coordDisplay.Font = .Font.SourceSansBold
(yPos, placeholder, btnColor)
inp = .(, contentFrame)
inp.Size = .(, , , )
inp.Position = .(, , , yPos)
inp.PlaceholderText = placeholder
inp.BackgroundColor3 = .(, , )
inp.BackgroundTransparency =
inp.TextColor3 = .(, , )
inp.TextSize =
inp.ClearTextOnFocus =
.(, inp).CornerRadius = .(, )
btnSave = .(, contentFrame)
btnSave.Size = .(, , , )
btnSave.Position = .(, , , yPos)
btnSave.Text =
btnSave.BackgroundColor3 = .(, , )
btnSave.Font = .Font.SourceSansBold
btnSave.TextColor3 = .(, , )
btnSave.TextSize =
.(, btnSave).CornerRadius = .(, )
btnTele = .(, contentFrame)
btnTele.Size = .(, , , )
btnTele.Position = .(, , , yPos + )
btnTele.Text = .. placeholder
btnTele.BackgroundColor3 = btnColor
btnTele.Font = .Font.SourceSansBold
btnTele.TextColor3 = .(, , )
btnTele.TextSize =
.(, btnTele).CornerRadius = .(, )
btnSave.MouseButton1Click:(()
p = player.Character player.Character:() player.Character.HumanoidRootPart.Position
p inp.Text = .(, p.X, p.Y, p.Z)
)
inp, btnTele
inputCoords1, btnCreateCoords1 = (, , .(, , ))
inputCoords2, btnCreateCoords2 = (, , .(, , ))
inputCoords3, btnCreateCoords3 = (, , .(, , ))
inputPlayer = .(, contentFrame)
inputPlayer.Size = .(, , , )
inputPlayer.Position = .(, , , )
inputPlayer.PlaceholderText =
inputPlayer.BackgroundColor3 = .(, , )
inputPlayer.BackgroundTransparency =
inputPlayer.TextColor3 = .(, , )
inputPlayer.TextSize =
inputPlayer.ClearTextOnFocus =
.(, inputPlayer).CornerRadius = .(, )
btnTeleportPlayer = .(, contentFrame)
btnTeleportPlayer.Size = .(, , , )
btnTeleportPlayer.Position = .(, , , )
btnTeleportPlayer.Text =
btnTeleportPlayer.BackgroundColor3 = .(, , )
btnTeleportPlayer.Font = .Font.SourceSansBold
btnTeleportPlayer.TextColor3 = .(, , )
btnTeleportPlayer.TextSize =
.(, btnTeleportPlayer).CornerRadius = .(, )
statusLabel = .(, contentFrame)
statusLabel.Size = .(, , , )
statusLabel.Position = .(, , , )
statusLabel.Text =
statusLabel.TextColor3 = .(, , )
statusLabel.BackgroundTransparency =
statusLabel.TextSize =
statusLabel.Font = .Font.SourceSansBold
(cframe)
model = .()
model.Name =
model.Parent =
baseCF = cframe * .(, .(), )
outerRing = .()
outerRing.Name =
outerRing.Size = .(, , )
outerRing.CFrame = baseCF
outerRing.Color = .(, , )
outerRing.Material = .Material.Neon
outerRing.Transparency =
outerRing.Anchored =
outerRing.CanCollide =
outerRing.Parent = model
outerMesh = .(, outerRing)
outerMesh.MeshType = .MeshType.Sphere
outerMesh.Scale = .(, , )
innerCore = .()
innerCore.Name =
innerCore.Size = .(, , )
innerCore.CFrame = baseCF
innerCore.Color = .(, , )
innerCore.Material = .Material.Neon
innerCore.Transparency =
innerCore.Anchored =
innerCore.CanCollide =
innerCore.Parent = model
innerMesh = .(, innerCore)
innerMesh.MeshType = .MeshType.Sphere
innerMesh.Scale = .(, , )
attGreen = .(, outerRing)
particlesGreen = .(, attGreen)
particlesGreen.Texture =
particlesGreen.Color = ColorSequence.({
ColorSequenceKeypoint.(, .(, , )),
ColorSequenceKeypoint.(, .(, , )),
ColorSequenceKeypoint.(, .(, , ))
})
particlesGreen.Size = NumberSequence.(, )
particlesGreen.Lifetime = NumberRange.(, )
particlesGreen.Rate =
particlesGreen.Speed = NumberRange.(, )
particlesGreen.SpreadAngle = .(, )
attSparks = .(, outerRing)
whiteSparks = .(, attSparks)
whiteSparks.Texture =
whiteSparks.Color = ColorSequence.(.(, , ))
whiteSparks.Size = NumberSequence.({
NumberSequenceKeypoint.(, ),
NumberSequenceKeypoint.(, ),
NumberSequenceKeypoint.(, )
})
whiteSparks.Lifetime = NumberRange.(, )
whiteSparks.Rate =
whiteSparks.Speed = NumberRange.(, )
whiteSparks.SpreadAngle = .(, )
light = .(, outerRing)
light.Color = .(, , )
light.Range =
light.Brightness =
.(, ()
outerRing outerRing.Parent
(SOUNDS.CLOSE, , , outerRing)
)
:():(model, )
outerRing
(startCFrame, targetPosition, onHitCallback)
proj = .()
proj.Name =
proj.Size = .(, , )
proj.Shape = .PartType.Ball
proj.Color = .(, , )
proj.Material = .Material.Neon
proj.CanCollide =
proj.Anchored =
proj.CFrame = startCFrame
proj.Parent =
light = .(, proj)
light.Color = .(, , )
light.Range =
light.Brightness =
trail = .(, proj)
trail.Texture =
trail.Color = ColorSequence.(.(, , ))
trail.Size = NumberSequence.(, )
trail.Lifetime = NumberRange.(, )
trail.Rate =
trail.Speed = NumberRange.(, )
startPos = startCFrame.Position
distance = (targetPosition - startPos).Magnitude
speed =
duration = .(distance / speed, , )
elapsed =
connection
connection = RunService.Heartbeat:((dt)
elapsed = elapsed + dt
alpha = .(elapsed / duration, , )
proj.Position = startPos:(targetPosition, alpha)
alpha >=
connection:()
proj:()
onHitCallback ()
)
(targetVectorB)
char = player.Character
(char char:())
root = char.HumanoidRootPart
forwardVector = root.CFrame.LookVector
gunMuzzlePos = root.Position + (forwardVector * ) + .(, , )
spawnPosA = root.Position + (forwardVector * ) + .(, , )
spawnCFrameA = .(spawnPosA, spawnPosA + forwardVector)
spawnCFrameB = .(targetVectorB)
originVectorA = root.Position
statusLabel.Text =
(.(gunMuzzlePos, gunMuzzlePos + forwardVector), spawnCFrameA.Position, ()
(SOUNDS.OPEN, , , root)
portalA = (spawnCFrameA)
(SOUNDS.OPEN, , , )
portalB = (spawnCFrameB)
coolDownA, coolDownB = ,
portalA.Touched:((hit)
hit:(char) coolDownA
coolDownB =
statusLabel.Text =
(SOUNDS.TELEPORT, , , root)
root.CFrame = .(targetVectorB) + .(, , )
.()
coolDownB =
)
portalB.Touched:((hit)
hit:(char) coolDownB
coolDownA =
statusLabel.Text =
(SOUNDS.TELEPORT, , , root)
root.CFrame = .(originVectorA) + .(, , )
.()
coolDownA =
)
statusLabel.Text =
)
(text)
x, y, z = text:()
x y z .((x), (y), (z))
RunService.RenderStepped:(()
char = player.Character
char
hasGun = char:() ~=
frame.Visible = hasGun
hasGun char:()
p = char.HumanoidRootPart.Position
coordDisplay.Text = .(, p.X, p.Y, p.Z)
frame.Visible =
)
(btn, inputObj, labelName)
btn.MouseButton1Click:(()
vec = (inputObj.Text)
vec
(vec)
statusLabel.Text = labelName ..
)
(btnCreateCoords1, inputCoords1, )
(btnCreateCoords2, inputCoords2, )
(btnCreateCoords3, inputCoords3, )
btnTeleportPlayer.MouseButton1Click:(()
targetName = .(inputPlayer.Text)
targetName == statusLabel.Text =
_, p (Players:())
p ~= player .(.(p.Name), targetName)
p.Character p.Character:()
(p.Character.HumanoidRootPart.Position)
statusLabel.Text =
)
Portal gun Rick and morty by me

Universal