Hello, i am just trying to make a script that works like this: U click a part, the part makes the gui text change +1, Click again, gui text goes +1 again..
Now although this does seem to work, and the value changes.. it doesnt appear to change in-game, heres my script:
I have a Part that is able to click and a value inside the gui that makes the text change,
local clicky = script.Parent.ClickDetector
local value = game.StarterGui.NumberV.Value
local number = game.StarterGui.NumberV.Number
local function onClicked()
game.StarterGui.NumberV.Number.Text = game.StarterGui.NumberV.Value.Value
if value.Value >= 0 then
value.Value = value.Value + 1
end
end
clicky.MouseClick:Connect(onClicked)
hope anyone can help me, Thank u for reading

2 comments
how did it not work
i dont know tbh, it does the same exact thing.. and still doesnt change it on screen or in-game