Help with a math script

Basically i want to print how many x fits in z like 100 fits 5 times on 509 so it prints 5.
I have no idea of how i’m going to do that so i’m asking for help here.

(I haven’t tried anything yet because i’m pretty new into scripting)

1 Like

local CALCULATION = math.floor(Z/X)

4 Likes

Hmm it’s not working, output: 0

edit: i was doing X/Z
thanks for helping me, it works fine :slight_smile: