Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Gui in PlayerGui will appear in game, but doesent function?

Asked by 5 years ago

So when i enter the game, my gui's appear on the screen but they do not function, Buttons wont work, and scripts wont work, and the gui does not seem to exist in the PlayerGui folder. I have tried indexing them and finding them within the developers window in game, but it comes up as nil, yet the gui's still appear on screen. For some reason it works in PlaySolo, but not in-game. PLEASE HELP!

0
Keep in mind, i checked the gui's in my other games aswell, and they are somehow doing the same thing, idk why, but they arent working anymore either, what changed in roblox and how do i fix this? Manelin 2 — 5y
0
What are you trying to do? JakyeRU 637 — 5y
0
Are you using a normal script for the guis? Rare_tendo 3000 — 5y
0
This is because FilteringEnabled is enabled. To learn more about FE check out the YT video by ScriptGuider or the Wiki. INOOBE_YT 387 — 5y
View all comments (6 more)
0
Filteringenabled is disabled, i checked, and tried even enabling it but it wont work. The scripts and gui's were working before, but suddenly they just dont work Manelin 2 — 5y
0
Ughhh i feel stupid, i just replaced the buttons scripts with local scripts. But it doesnt fix the issue of, for some reason i cant index the gui's in player gui within other scripts. Manelin 2 — 5y
0
FE is not disabled. It has been forced, Experimental Mode has been removed. User#19524 175 — 5y
0
IM having another problem now, because i moved over to local scripts some effects arent being seen by other players. Manelin 2 — 5y
0
NEVER PUT SERVER SIDED SCRIPTS IN GUI's, i had to learn that the hard way, a start would be to convert all scripts in the gui into localscripts fanofpixels 718 — 5y
0
so how would i go about fixing these scripts,(which are local scripts) and making them so others can see the effects? Manelin 2 — 5y

1 answer

Log in to vote
1
Answered by
JakyeRU 637 Moderation Voter
5 years ago

Hello, Try to use a LocalScript in your TextButton. Here is an example:

--LocalScript

local changedcolor = false

script.Parent.MouseButton1Click:Connect(function()
    if changedcolor == false then
        script.Parent.BackgroundColor3 = Color3.new(255, 170, 0)
        changedcolor = true
    else
        script.Parent.BackgroundColor3 = Color3.new(255, 255, 255)
        changedcolor = false
    end
end)
Ad

Answer this question