You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Fix Teeport Script
-
What is the issue? Unable to assign property CFrame. CoordinateFrame expected, got Instance
-
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