[SOLVED] How to make a button that teleports a player to a certain location

Hi! I’ve recently been trying to make a script that teleports a player to a certain location. This is my script:

local button = script.Parent

	local player = game.Players.LocalPlayer
	player.Charecter.HumanoidRootPart.CFrame = CFrame.new(945.025, 24.1, -1899.876)

When I did that, it popped up with this:

imexcited7 is not a valid member of Player "Players.imexcited7"  

Could you guys please help me? Thanks! <3

That’s a strange error. The script is telling you that the user imexcited7 has not been found. Basically, the script can’t find that username in the server.

You spelled character wrong. It’s spelled “character”, not “charecter”.


Oh, good point. I didn’t see that coming :slight_smile:

1 Like

That might work. I’ll try it and let you know if it worked.

Also, Use position with vector3, better practice.



Make sure to mark cam correct, if he is correct.

Yup, he probably is correct

1 Like

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