Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How could i divide Eliminations by Deaths?

I tried this, but nothing happened.

local int2 = game.Players.LocalPlayer.leaderstats:WaitForChild("deaths")
local int1 = game.Players.LocalPlayer.leaderstats:WaitForChild("Eliminations")
local textLabel = script.Parent
textLabel.Text = math(int1/int2)
game.Players.LocalPlayer.leaderstats.Eliminations.Changed:Connect(function()
	    textLabel.Text = int1/int2
	game.Players.LocalPlayer.leaderstats.deaths.Changed:Connect(function()
		textLabel.Text = math(int1/int2)
	end)
end)

1 comment

0

Wait im editing my answer again check it in 1 min

1 answer

✓ Accepted answer

I think this would work:

textLabel.Text = tostring(int1.Value)/tostring(int2.Value)

Try it out to see if it works.

Happy to help, b_mni.

1 comment

0

Thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.