I am creating a roleplay game that can be controlled by the host. The hosts can spawn things like chests and notes with a gui button. I'm currently creating the first one which is just a simple click part to open gui. But when I clone it from replicated storage to workspace, the gui text wont appear. The part that can be clicked is placed into workspace, but when I click it, the GUI text doesn't appear. Why is that?
Note part script: note = script.ChestNote:Clone() script.Parent.ClickDetector.MouseButton1Click:Connect(function(player) note.Parent = player.PlayerGui end)
local rep = game.ReplicatedStorage local function event() rep.Open:FireServer() end
script.Parent.MouseButton1Click:Connect(event)
Button that summons the note part: local rep = game.ReplicatedStorage local function event() rep.Open:FireServer() end
script.Parent.MouseButton1Click:Connect(event)
SCRIPT IN SERVERSCRIPTSERVICE: rep = game.ReplicatedStorage function note() rep.Note.Parent = game.Workspace
end
rep.Open.OnServerEvent:Connect(note)

3 comments
Please use a code block to put the scripts in, that will make it much easier to read.
i already placed a code block in the script but the note gui still doesn't appear when i click the part
nvm i already fixed it