#Cant change gui visibility in local script
1 messages · Page 1 of 1 (latest)
@charred urchin
itas meant to be
Frame = script.parent
Frame.Transparency = 0.5
Frame.Visible = false
imma send some images
i tried to just create a normal script because for some reason mousehoverenter didnt work in the local script
but this one is a local
This is only going to run once and never again, so if script.Parent.Value.Value is false when the script runs, it'll be invisible.
holy i gotta have more attention
thx tho
helped alot
wait it still didnt work
well what did you do
first i tried adding a while true loop, but it didint work, so i wondered if it was the else, so i set it to else if script.parent.value.velue == true
please show the code when you talk about it
I think it's better to use GetPropertyChangedSignal for the value instead.
script.Parent.Value:GetPropertyChangedSignal("Value"):Connect(function()
-- if statement here
end)
and if you want to simplify it, you can just set playergui.ScreenGui.ImageLabel.Visible directly to script.Parent.Value.Value, the if statement isn't really necessary
so like this?
No, that should replace the while loop
the indentation needs work, but did you try it?
yes i did, it didnt work but i think its a bug because i tried doing a work around to the problem, im going to rewrite the other scripts to see if it works
would it break the game if i changed the startergui insted of the local player gui?
What do you mean?
Why would you want to do that? That won't change the current GUI, just the template that gets copied over
bruh
oh alr, but using the player gui just dosent work and i dont know why, i think i might just delete this thing from the game
playergui not startergui
StarterGui is never the answer lol
i suggest check your output window for errors
the instances probably dont exist yet
wdym
** You are now Level 4! **
or you spelled something wrong
use waitforchild instead of assuming things exist
alr
i did this, but when i check the boolean value it does change but when i check the player gui it dosent still
can local scripts not read values that are not inside of it?
So you're storing a boolean in playergui, not a reference to the variable you took from.
This is all a bit wild.
you're using script.Parent.Value despite already storing that in value, so why not just use value?
Fix the indentation
heres my workspace for context
u dont need the if statements
just do
part = Value.Value