button = script.Parent
teleport = game.Workspace.teleport
function removeGUI()
wait(1)
script.Parent.Parent.Vi
sible = false
wait()
gun = game.Lighting.LinkedPaintballGun:Clone()
gun.Parent = button.Parent.Parent.Parent.Parent.Backpack
:MoveTo(teleport) -- i need help on this line, how do i get the player to teleport to this brick
end
button.MouseButton1Click:connect(removeGUI)
also when i was using the command line, it said "Unable to cast Instance to Vector3" does this mean i cant use a part to teleport my character to?

1 comment
Try removing the line breaks on lines 7 and 11 and tell what happens.