Hi guys, i’m doing this script for when i use the prompt i got teleported to a place, but this error is happening, what is wrong with the script
This is the erro that is happening
And here’s the scrpt
The explorer
Hi guys, i’m doing this script for when i use the prompt i got teleported to a place, but this error is happening, what is wrong with the script
This is the erro that is happening
And here’s the scrpt
The explorer
You can just assign workspace.endpart's CFrame value to placeToTeleportTo variable’s value without creating a new CFrame value:
local placeToTeleportTo = endpart.CFrame
The CFrame.new constructor takes in a Vector3 as an argument, but you sent an Instance.
On line 1, you defined endpart as a Part in the workspace. But on line 2 you sent the part itself to the constructor, instead of the part’s position Vector3.
Replace CFrame.new(endpart) with CFrame.new(endpart.Position) and it should be sorted out. 
unrelated, but what are you even thinking with these lines
if debounce == false then
debounce = true
end
don’t do that please
just do
debounce = true
Thanks for everyone’s help and… sorry for my script 