So, I am trying to make a teleporter to a certain block. I feel like this is right, but the error message "Unable to cast Instance to Vector3" keeps appearing. Here is my script.
local Part = script.Parent local Location = script.Parent.Parent.Reciever Part.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then local Character = hit.Parent Character:MoveTo(Location) end end)
local Location = script.Parent.Parent.Reciever.Position
Well um, I'm pretty sure MoveTo() needs a Vector3 point, so just add .Position to your location variable. I hope this works.