Script no worky

When I print the value it prints 0, why is it not changing the intvalue?

local ClickDetector = script.Parent

ClickDetector.MouseClick:Connect(function(player)
	local INT = player:WaitForChild("Position"):WaitForChild("ExactPosition")
	
	INT.Value = player.Character:WaitForChild("HumanoidRootPart").CFrame.Position
	print(INT.Value)
end)
1 Like

You need to change the IntValue to a Vector3Value as you can’t update an IntValue with player’s position (Vector3)

3 Likes

oh right, you can only store 1 number in an intvalue right? Thanks, ill fix it now.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.