Why isnt my script raising the Text by one each time it gives them money/view the line with the stars is what I need help with. The stars were there as a highlighter
local i = 1 local price = 1 local y = math.random(10) local dep = script.Parent.Parent local player = game.Players.LocalPlayer local stats = player:WaitForChild("leaderstats") local z = 1 + stats.Subscribers.Value function click() if script.Parent.Visible == true then script.Parent.Parent.Cav.Visible = false dep.micro.Visible = false dep.online.Visible = false dep.fpc.Visible = false dep.bill.Visible = false dep.sap.Visible = true script.Parent.Parent.Parent.Parent.pot.Visible = true for _ = 1,5 do stats.Views.Value = stats.Views.Value + 1 ***script.Parent.Parent.Parent.Parent.pot.Text = "Views:".. i + 1*** wait(1) end end end script.Parent.MouseButton1Click:Connect(click)