Better way about this? Not working

local Parent = script.Parent

function Test()
    local Graph = Parent.MaxVisibleGraphemes
    
    Graph += 0.5
end

if Parent.Parent.Visible == true then
    Test()
    print("Starting function?")
else
    print("Something happened")
end

Try this?

Nothing happened past here.

If this is a Server Script, you need to check the Server Side Logs instead of the Client Side
You should’ve gotten some sort of output regardless?

It’s a LocalScript, as you can see.

Not really but ok

Try this then?

local Parent = script.Parent

print("Is this script even working")

function Test()
    local Graph = Parent.MaxVisibleGraphemes
    
    Graph += 0.5
end

if Parent.Parent.Visible == true then
    Test()
    print("Starting function?")
else
    print("Something happened")
end

wait(30)
Test()

image Nothing past this

The Output looks like the function should’ve started, so it should’ve worked???

Confirm it 1 last time:

local Parent = script.Parent

print("Is this script even working")

function Test()
    print("Bruh")
    local Graph = Parent.MaxVisibleGraphemes
    
    Graph += 0.5
end

wait()
if Parent.Parent.Visible == true then
    Test()
    print("Starting function?")
else
    print("Something happened")
end

I saw the "bruh. Is something wrong with my function?

No, the script should’ve worked if it printed that? Try it again, I edited it a bit

i think i need some sort of loop in the Graph += function?

What exactly are you wanting to do in that function exactly? Slowly increase the MaxVisibleGraphemes property?

1 Like

did you mean to say script.Parent instead of just parent?

Yes.

No, I don’t want to write 3O LeTtErS

parent is actually a variable he defined earlier in the script

Ah, just do this then: Encase the property change in a loop

local Parent = script.Parent

print("Is this script even working")

function Test()
    print("Bruh")
    local Graph = Parent.MaxVisibleGraphemes
    
    for Loop = 1, 10 do
        Graph += 1
        print("Loop playing")
        wait(0.3)
    end
end

wait()
if Parent.Parent.Visible == true then
    Test()
    print("Starting function?")
else
    print("Something happened")
end


n o t h i n g

Maybe it’s supposed to be Graph +=1? Try it again?

no changes.
sdthujdghisetzyuhis

Ok so wait

What exactly are you trying to do in the script? Create a typewriter effect of some sort?

Yes, while using functions