So the players score is the distance they go meaning the Z Value is also the players points value, I made a simple script to do this but it returns to large of a number, Here's the script:

local Player = workspace:WaitForChild("Player")
while true do wait()
	script.Parent.Text = Player.Position.Z
end

So the number it returns is true to too many decimals, instead of '32.39432847' I want '32.39' how would I (if possible) do this?

2 comments

1

String.format - [flags][width][.precision]specifier: if you want the precision to be 2, and you don't know the exact width, you can use something like "%.2f", so script.Parent.Text = string.format("%.2f", Player.Position.Z) https://developer.roblox.com/articles/Format-String

0

This worked perfectly, thank you :)