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?
Error at line 12, the script doesn't know where to move what to workspace.teleport, add on to the line game.Players.LocalPlayer.Character:MoveTo(teleport)
'Sorry if this didn't work'.
I hope this helped!