Hello I ran into this issue when I was making a game where whenever you click the “Make Video” button it gives you a random amount of subscribers (it was just a test btw) and it also has to add 1 to the videos made textlabel.
heres my code and my error
local BackgroundMusic = game.Workspace.Song
local Yay = game.Workspace.Goody
local Click = game.Workspace.Click
local CounterTxt = script.Parent.Parent.Parent.Cntr.countTxt
local videosmade = script.Parent.Parent.Parent.VidCntr.countTxt.Text
local videomadewnt = script.Parent.Parent.Parent.VidCntr.countTxt
videomadewnt.Text = videomadewnt.Value.Value
videomadewnt.Value.Value = 0
BackgroundMusic.Looped = true
BackgroundMusic:Play()
script.Parent.MouseButton1Click:Connect(function()
videomadewnt.Value.Value + 1
Click:Play()
CounterTxt.Text = (math.random(0, 100))
Yay:Play()
end)
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Parent.madecntr.Visible = true
wait(1)
script.Parent.Parent.Parent.madecntr.Visible = false
end)
and heres my error:
please help im new AHHHHHHHHHHH
im not really i just suck AHHHHHHHHHHHHHHHHHHH