Hi, I am trying to make a box that when you click it this little GUI pops up on screen and then removes after 3 seconds on a game, I created the scripts and all that and it did work fine in studio but when I tested it in-game it did not, I have all the remote events and scripts, I did a little test and the second line of the script below worked fine, the fourth did not and I don't know why.

game.Workspace.RemoteRed.OnServerEvent:connect(function()
	game.Workspace.Crate.Click.Transparency = 0 --I was testing to see if the actual script 
--Worked in game
	wait(1)
	game.Workspace.Red:Clone().Parent = game.Players.LocalPlayer.PlayerGui --these lines 
--didn't work
wait(3)
game.Players.LocalPlayer.PlayerGui.Red:Destroy() 
end)

I think I might have done a silly mistake, but if you could help and explain a little, please do. Thanks,

1 comment

0

Are you using a local script?