Here is the problem... I created a local script and made this line of script
function OnClicked() Instance.new("ScreenGui", game.StarterGui) game.StarterGui.ScreenGui.Name = "NobGui"
end
script.Parent.ClickDetector.MouseClick:connect(OnClicked)
When you click the "doorbell" a gui is supposed to pop up on the screen saying "Seems like no one is home." I'm just getting the basics of inserting a gui when the players clicks the button. I tried it and some reason it wont work!
Help!

9 comments
Thank you, but it seems to have an error - Workspace.Doorbell.Bell.Script:1: attempt to call field 'MouseClick' (a userdata value)
Do you have a ClickDetector object in Bell?
I changed the code a bit try it now it must work. If it doesn't that means either the script isn't in a part or there isn't a ClickDetector in the part.
There is a click detector in the part
Thank you it works now!
np
I'd like to add something - When you inserted the gui, you inserted it into the StarterGui. If a player is clicking a part, chances are the PlayerGui is already loaded. The player would have to reset to see the gui inside StarterGui. To insert a gui so that a player can see it, your script has to find the player that clicked it (like the answer does above) and insert it into their PlayerGui.
It does that in line 4 which is: screengui.Parent=player.PlayerGui
I was referring to his line of code, where he used:Instance.new("ScreenGui", game.StarterGui)