Teleport Service not working

so i have this game named OHIO and im making a testplace for testing new weapons, but i have a problem with TeleportService this is the part of the script which doesnt work

local function OG(msg)
		if msg[1]:lower() == "!OG" then
			TPservice:Teleport(9778001573,{Player})
		end
	end

the function OG is in a part of a bigger admin script thing, i know this cant teleport in studio and i have 3rd party teleports, but it doesnt print anything in the output like “you cant teleport to other places in studio” bla bla bla, please help me

Try putting else in that if statement and make it print something so you know if the if statement is true or not

1 Like

I cant remember, cause Im used to TeleportAsync but isnt that Teleport function accepts only the player instance and not an array of players?

TPservice:Teleport(9778001573, Player )

hey, idk why but it is printing the else statement, it works for other things like !give command but its printing the else statement for this one

The message:lower will turn your string into lower case, then the string you’re comparing it to is uppercase, no?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.