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)

7 comments

0

Can you please re write the script @JesseSong cuz its still had a red line under the end

0

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

0

@JesseSong may you please re-write it so I can see it?

0

Never mind.

0

@JesseSong why isnt the gui poping up?

0

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