I am posting this again, since I modified the Script, but anyways I tried this and it still won't work:
function onClicked() if script.Parent.Parent.Parent.Cookies.Number.Value == 100 then while true do wait() script.Parent.Parent.Parent.CPS.Numberr.Value = script.Parent.Parent.Parent.CPS.Numberr.Value + 0.3 script.Parent.Parent.Parent.CPS.Text = script.Parent.Parent.Parent.CPS.Text + 0.3 wait(0.3) script.Parent.Parent.Parent.Cookies.Text = script.Parent.Parent.Parent.Cookies.Text + 0.3 end end end script.Parent.MouseButton1Click:connect(Click)
I would just love to hear what kind of trouble you are having.
script.Parent.Parent.Parent.CPS.Text + 0.3 wait(0.3) Parent.Parent.Cookies.Text = script.Parent.Parent.Parent.Cookies.Text
You can't add a number Value in a string value maybe you can do this.
or -- you can do this z = Instance.new("Intvalue") z.Parent = game.Workspace z.Value = 1 script.Parent.Parent.Parent.CPS.Text = "What ever you want here"..z.Value
Then simply add to the int value and it will show on the text. Same with the other mistakes you made.
Also, all the Value's are NumberValue's.