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)

2 comments
It's not that hard... Obviously I have TextLabels in the StarterGui, that hold a Number, and I am trying to make it so when you buy the Upgrade in the Shop, you buy it and it gives you 0.3 every second.
At least edit your question so the script is somewhat readable. Use the correct BBCode(?) format.