How to get tire wear GUI to work

So I am trying to make a tire wear GUI but I’m unsure how to do it as I’m not familiar with GUI and scripting. So uh any ideas on how I should do it?

2 Likes

What is “tire wear” ui? im unfamiliar with this. If i can know what it is, i can try to help.

It’s something that will show how much the tires have worn over time in percent

I would say to use Attributes (Instance Attributes) and would you say as in over time that the tires would wear down or if they hit something or go over hill, over time is easier. You can make a script that as they are going over 0 speed / moving at all. The tires will end up wearing down over time by using (Instance:SetAttribute(“Name”, Instance:GetAttribute(“Name”) - 0.1) or something like that

1 Like

I’ve all ready got a script for the tire wear I’m just trying to figure out how to get the GUI to work

You want to get the Tire Wear as a percent am I correct?

Yes I’d like it to show as a percent

So percentages would be the Tire wear currently Divided by the Original tire wear Number (100%) I would put the original number as 100 and it wears down from there since it’s easier than bigger numbers. You can round numbers using Math.round() as shown below. If you’re asking how to get the percentages. If this is exactly what you’re asking for, to find percentages. If it’s something else @ me

Math.round(Number Instance / Number Instance)
1 Like

If you have Tire Wear for all 4 tires. You can just do it for all 4, but for the images I would recommend getting someone to draw them for you or finding some online. And then just putting TextBoxes right beside them and putting the Tire Wear for that tire in that box.

So I’d just need to make the GUI and put a script into it with this?

Not just this, but I’m giving you on how to make the percentages you will need to access the Boxes and everything with a single script is easier than just 4

Ok thanks I’ll try it out and see if it works

does anything need changed within this script (the tire wear script) while true do if script.Parent.Parent.VehicleSeat.Steer < 1 then script.Parent.Friction= script.Parent.Friction- 0.03 end wait(18) end