First of all, salutations. I've tried everything I could to get this work, and it's probably one of the more simple things I've come across with scripting - for some reason, it just won't work. The script is a LocalScript located within a static NPC's head, along with a ClickDetector. I've also tried a script that makes the Frame of the GUI visible when clicked on, but that didn't work either.
local GuiSet = game.ServerStorage:WaitForChild("squest1")
script.Parent.ClickDetector.MouseClick:Connect(function()
local a = GuiSet:Clone()
a.Parent = game.Players.LocalPlayer.PlayerGui
end)
This script's intended purpose is to make a GUI appear. The GUI then gives the player a part of a gun for an in-game sidequest. When clicked, nothing happens. at all. So if you guys could help point me in the right direction, it'd be much appreciated. Thanks in advance.

1 comment
Thank you so much!