Answered by
8 years ago Edited 8 years ago
this is the first question I've ever answered I've tested it, it works :)
using the StarterGui
is not a good way to store your information or gui idk
you should maybe store it somewhere like inside of the ReplicatedStorage
or simply just inside the script
quick thing yu don't need all that Visible
stuff if so throw it into one frame and only visible that one
your error was that in the startergui it enables but that doesn't show to anyone if it was to work it would throw it into everyone screen so coding has to know where to put it
im probably really bad at explaining lol
02 | local NPC = script.Parent |
03 | local Screen = script:WaitForChild( 'FirstTextGui' ) |
06 | function onClicked(player) |
07 | local startergui = player:WaitForChild( 'PlayerGui' ) |
08 | local screen = Screen:Clone() |
10 | screen.Parent = startergui |
12 | elseif Talk = = true then |
13 | if startergui:FindFirstChild(Screen.Name) then |
14 | startergui:FindFirstChild(Screen.Name):Destroy() |
20 | NPC.ClickDetector.MouseClick:connect(onClicked) |
if it doesn't work
uhh your doing something wrong
hopefully it works click the answer button :D
cuz I need to answer one question atleast