create player Y position graph?
hi there, I had been able in creating a player Y position indicator that can display how high is the humanoid from the ground. which is beneficial in determining the success factor in the game I am creating. kind of like tower of hell.
here is the code that I created that shows the player's height from the ground in the leaderstat. and here is the screenshot of the said leaderstat
01 | local function OnPlayerJoin(player) |
03 | repeat wait() until player.Character |
05 | local leaderstats = Instance.new( "Folder" ) |
06 | leaderstats.Name = "leaderstats" |
07 | leaderstats.Parent = player |
09 | local Height = Instance.new( "IntValue" ) |
10 | Height.Name = "Height" |
11 | Height.Parent = leaderstats |
12 | while wait() do Height.Value = (player.Character.HumanoidRootPart.Position.Y - 8 ) end |
17 | game.Players.PlayerAdded:Connect(OnPlayerJoin) |
but right now I am trying to turn this number info into a graph like tower of hell did. any suggestion of how I can turn it in like a graph in Tower of Hell game did?
here is the TOH screenshot.
graph