Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Checkpoint is not a valid member of Vector3?

game.Players.PlayerAdded:Connect(function(plr)
	local stage = plr:WaitForChild("leaderstats").Stage
		plr.CharacterAdded:Connect(function(char)
		repeat wait() until	plr.Character ~= nil
		wait(0.01)
		local checkpoint = game.Workspace.Stages:FindFirstChild(stage.Value)
		char:FindFirstChild("HumanoidRootPart").CFrame = CFrame.new(checkpoint.Position + Vector3.new(0,5,0). checkpoint.Position)
		char:FindFirstChild("HumanoidRootPart").Orientation = Vector3.new(0,0,0)
		wait(0.1)
	end)
end)

18:52:36.439 checkpoint is not a valid member of Vector3 - Server - Checkpoints:7

any fix suggestion on line 7?

1 comment

0

Why are you trying to index it from the Vector3?

1 answer

Ok on line 7, there's a typo after the Vector3. You need to change the period to a comma.

This discussion is preserved as it was. New answers, comments, and votes are closed.