I've made a script where I create a part by doing Instance:
while wait(15)do
db = false
if db == false then
if script.Parent.Humanoid.Health == 0 then
db = true
deadbody = Instance.new("Part", workspace)
deadbody.Position = script.Parent.Torso.Position
deadbody.Transparency = 0
deadbody.CanCollide = true
game.Workspace.nothing.hello123:Clone().Parent = game.Workspace.Part
end
end
end
And I cloned this hello123 (which is a part where there is a clickdetector and a localscript) in the Instance.new called part, as you can see. So I go on the LocalScript in nothing.hello123 and:
db = true
if db == true then
script.Parent.hello123.MouseClick:connect(function()
game.StarterGui.ScreenGui.Frame.Visible = true
end)
***So I test it and the part appears, but when I click on the part ( the cursor icon changes so it's not a clickdetector problem) it doesn't open. May you help me, please? ***

2 comments
Probaly because local script won't work in workspace, put a server script and fire a client event
Still not working.