so I'm making a cash per kills script and the amount of cash u get is random and I set
local gain = math.random(400,600)
and I want to spawn a text label to show how much I've gained and the spawn works but the text doesn't, heres the code for that
if hit.Parent.Humanoid.Health <= 0 then
findYuan.Value = findYuan.Value + gain
local change = game.Lighting.Misc.Change:Clone()
change.Text = "+", gain
change.Parent = game.Players:FindFirstChild(plrname).PlayerGui.HUD.Base
end
again, the only thing that doesn't work is the text for example if gain was equal to 525 then I would want the text to show up as "+525" and not just "525"

1 comment
eyyy thanks man