So iv’e been woking on a teleportation script and every time it gives me an
error
iv’e tried changing it up and and tried switching from LocalScript to Normal and nothing works
so now iv’e just have an local script wich gives me an error iv’e never heard off
--tp buttons
local CTFTP = script.Parent
--tp shenanigans
local Players = game:GetService("Players")
local TeleportService = game:GetService('TeleportService')
local userid = Players.LocalPlayer
local Place_CTF = 5773875970
local Place_Main = 5773869554
function tpClick()
TeleportService:Teleport(Place_CTF, userid)
end
CTFTP.MouseButton1Down:connect(tpClick)
Make sure the script is a local script, as a local player call won’t work in a normal script. It says source not available because it’s a local script inside a player which is “deleted” every time you stop the game because the player is deleted.
Is the script.Parent instance a Part in workspace? If so, you will want to add a ClickDetector and then detect a click through that. If it’s a GUI button, perhaps look at the “userid” variable. I am not that experienced with teleporting players to other games, but I am pretty sure the userid would be the Player instance.
Instead of hovering over the Output message, can you show the entire output window? That’d be more helpful to me and possibly some other people as well.