I have 4 Teams in my game which all contain a Vector3Value and when a player is assigned to a team, I want a Model to teleport to a place. Here is my code:
game.Players.PlayerAdded:Connect(function(Player)
repeat wait() until Player.Team ~= nil
local ModelPos = Player.Team.Value -- (the vector3value i was talking about b4)
local Model = workspace.Model
Model:MoveTo(ModelPos)
end)
The model has a primary part btw
Whenever the script runs the output says "Unable to cast double to Vector3".
anyone help?

1 comment
Are you sure you link the Vector3 right, and is that even a Vector3Value because it said it is a Double.