I put a script where when I say open or something, it would open the door. Well, when I did, it keeps resetting me everytime I say something. This is what the script says:
print("Gui Closer Located and initiated.") --This worked
local function onClicked(GUI) --Before, you didn't use 'GUI'
if GUI then --This checks if 'GUI' exists
GUI:Destroy() --This will Destroy the 'GUI'
end --This ends the code block for the 'if' statement
end --This ends the code block for the function
script.Parent.MouseButton1Down:connect(function() --This will, eh, I forgot, but this will connect the Event to the function
onClicked(script.Parent.Parent.Parent) --When the TextButton is clicked, it'll destroy the GUI
end) --This ends the code block for the Event/function
`

2 comments
By "it keeps resetting me" do you mean that you die and respawn?
Yes