The value is 21.4 but the text is 21.40000 how do I fix this? I’ve tried the set the text once the value is 21.4 but it still is 21.40000. Do you have to separately remove the zeros?
game.ReplicatedStorage.ENG1ON.Changed:Connect(function()
if game.ReplicatedStorage.ENG1ON.Value == true then
wait(5)
for count = 1, 214, 1 do
script.Parent.Value.Value = script.Parent.Value.Value + 0.1
wait(0.03)
end
end
end)
script.Parent.Value.Changed:Connect(function()
script.Parent.Text = tonumber(script.Parent.Value.Value)
end)