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