So I have a placement system that clones a model in ReplicatedStorage that you can then place. I would like when the player hovers over the item and clicks, a GUI appears.
I have this LocalScript in StarterGui.
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local edit = script.Parent:WaitForChild("Edit")
mouse.Button1Down:connect(function()
if mouse.Target ~= nil and mouse.Target.Name == "Base" then
edit.Visible = true
end
end)
When I just have the model in Workspace without the clone/placement, it works fine. But once I clone the model, it doesn't work.
I'm not entirely sure how to fix this... any help will be appreciated.

5 comments
This code is generic enough that I can't see any reason why it wouldn't work on a Clone of the original 'Base' model. Are you sure 'Base' is getting cloned as well?
Yes, it is being cloned. It only happens after it's placed, so I was thinking when your moving the model to place using the mouse, it is not properly being disconnected or something. Is there a way to further check this?
If it's in the workspace, it's in the workspace. You can try various
printstatements inside your LocalScript to see whatmouse.Targetis, or use the variable watch pane in Studio to a similar effect.Alright, I found the issue. It appears there was a part on the surface the model was being placed on that was causing it. Thanks anyway for your quick responses!
Where is the "Edit"? I think that It can't find the child as it's in StarterGui when you told the script to find it in game.