Coordinate Script Not wroking

I am making a coordinate script for my game but it keeps on giving “attempt to call a string value”
Here is the script

while wait() do
	local player = game.Players.LocalPlayer
	local x = player.Character.HumanoidRootPart.Position.x
	local y = player.Character.HumanoidRootPart.Position.y
	local z = player.Character.HumanoidRootPart.Position.z
	script.Parent.Text = "Coordinates : " ..tostring(x) ", "..tostring(y) ", "..tostring(z)

end

Please help if you can :slight_smile:

1 Like

don’t forget the .. after each tostring(…)
like: "abc" .. tostring(1) .. "def" instead of "abc" .. tostring(1) "def"

1 Like