script.Parent.Touched:Connect(function()
game.StarterGui.Hacking.ImageLabel.Visible = true
wait(10)
game.Workspace["Moving Lazer"],Instance:Destroy -- How to make Moving Lazer be deleted after player does the function and waits 10 seconds
end)
COMMUNITY QUESTION
How do I make Moving Lazer be destroyed?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

7 comments
Can you please re write the script @JesseSong cuz its still had a red line under the end
Theres no need of saying game.Workspace Destroy only, if you're having a variable with a space also you need a parenthesis for :Destory() on line 4
@JesseSong may you please re-write it so I can see it?
Never mind.
@JesseSong why isnt the gui poping up?
Its because you're passing information to the startergui. Startergui is an object for guis to be cloned to playergui. Make sure you use playergui
Read this https://roblox.fandom.com/wiki/Intro_to_GUIs