#How do i make a depth meter
1 messages · Page 1 of 1 (latest)
Why dont you try to learn coding then ?
I actually am going to next year, im taking 2 computer science classes
can you help or na
Make a ScreenGui and put in StarterGui, then put a TextLabel that will display the depth.
Then put a LocalScript inside the TextLabel:
local RunService = game:GetService("RunService")
local TextLabel = script.Parent
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
RunService.RenderStepped:Connect(function()
if not LocalPlayer.Character then return end
if not LocalPlayer.Character.PrimaryPart then return end
TextLabel.Text = math.floor(LocalPlayer.Character.PrimaryPart.Position.Y)
end)
I havent tested it so let me know if there are errors or if you need anything changed
Basically it just runs the code each frame setting the text to your player's Y position (vertical position if u dont know)
Yo dont spoonfeed
Not good
wdym
** You are now Level 1! **
You should right now
Agreed
wdym i cant just like make the school start next year right now
also does anyone have an actual answer to my original question
yeai i guess
Learning will help
sure thx
yeah all you have to do is display your player's Y position which is the vertical position in the world
its basically the same as a depth meter, but learning how to make it will definitely help you in the future. you can use my code as a reference when learning
You can caclulate the distance between the players HRP and a specific Y level.