Hello! I came here to figure out how I can calculate studs. I am fairly new to this type of stuff, and this will be beneficial for up to now. If possible, I would want milistuds so I can easily create a ranking system.
Please guide me into creating a studs from a certain part!
local part = --your part here
local distanceInStuds = "Character not yet loaded"
if game.Players.LocalPlayer.Character then
distanceInStuds = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - part.Position).Magnitude
end
print(distanceInStuds)
local part = --your part here
local distanceInStuds = "Character not yet loaded"
local waitTime = 0.5 -- set this to the delay time between each time you check the distance
while task.wait(waitTime) do
if game.Players.LocalPlayer.Character then
distanceInStuds = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - part.Position).Magnitude
end
print(distanceInStuds)
end
To figure out a ranking system. I need this info to create a ranking system. Plus, I already went with @Platoon73 and forgot to mark as solution. Mb lol.