Here's what I tried:
function updatePercentage()
local prcnt = game.Workspace.ShotsHit.Value/game.Workspace.ShotsFired.Value
script.Parent.Text = prcnt.."%"
end
game.Workspace.ShotsFired.Changed:connect(updatePercentage)
I'm simply trying to find the percentage of how many times the target is hit out of all shots fired (and yes the values are set up correctly). Also, if you could please throw in a rounding system that would be great.
