Unable to assign property CFrame. CoordinateFrame expected, got Instance! Please Help!

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Fix Teeport Script

  2. What is the issue? Unable to assign property CFrame. CoordinateFrame expected, got Instance

  3. What solutions have you tried so far? I tried to look for answers or other scripts in different forums, there is nothing for this, or it doesn’t fit, or these are not the scripts that are needed!

This script is for teleporting a character via gui but for a character who has no torso but only a head and a HumanoidRootPart!

wait(0.5)
player = game.Players.LocalPlayer
button = script.Parent
local debounce = false

function teleport()
	if not debounce then
		debounce = true
		PlayerCharacter = player.Character.HumanoidRootPart
		PlayerCharacter.CFrame = game.Workspace.LobbySpawn
	end
end

button.MouseButton1Click:Connect(teleport)
while true do wait()
	debounce = false
	wait(1)
end

You just used a model, not its CFrame

wait(0.5)
player = game.Players.LocalPlayer
button = script.Parent
local debounce = false

function teleport()
	if not debounce then
		debounce = true
		PlayerCharacter = player.Character.HumanoidRootPart
		PlayerCharacter.CFrame = CFrame.new(game.Workspace.LobbySpawn.CFrame) --If it's part, if you have model  tell me
	end
end

button.MouseButton1Click:Connect(teleport)
while true do wait()
	debounce = false
	wait(1)
end

Thanks you for help to my script!

1 Like

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