[FIXED]local script executes and does work but gui doesn't pop up?
Asked by
4 years ago Edited 4 years ago
Hello I am doing a work Local script let me explain.
This script will make you press a text button and then a gui pops up.
This is what I got so far
02 | game.Workspace.building.kepiblopsworkdesk [ "kepiblop's computer" ] .Screen.SurfaceGui.Frame.TextButton.MouseButton 1 Down:Connect( function () |
03 | local player = game.Players.LocalPlayer |
04 | local gui = game.Workspace.building.kepiblopsworkdesk [ "kepiblop's computer" ] .Screen.kepibloppc |
05 | local guiclone = gui:Clone() |
06 | guiclone.Parent = player:WaitForChild( 'PlayerGui' ) |
08 | if gui.Parent = = nil then |
09 | warn( "Player hasn't gotten the gui yet" ) |
I am not using variables for long ones because i really wanted to give my fingers a workout
It may not look clean so i will put comments on what they are!
I know what you're thinking Where's the problem and what is the problem? Well believe it or not it actually works problem is it doesn't pop up and it just stays there Here's what I can confirm
The Local script works
The local script is in ReplicatedFirst
All frames are visible except for the unnecessary ones
The problem is that the gui does not become visible but it does execute and it does go there
Hopefully I got everything important and clear Thanks!