Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make it so that when a part touches a specific part, it will respawn in its original place?

I am making a soccer / football game and I want it to make it so that when the ball ends up in the net, a GUI will appear saying "Red team has scored" or "blue team has scored" and then after about 3 seconds, the ball will disappear and respawn in its original location and all the players will respawn in their spawn location AND the GUI will disappear.

Or in simpler words, when a part touches a specific part, a GUI will appear. Then after about 3 seconds, that part will respawn in its original location and all of the players will respawn in their spawn location AND the GUI will also disappear.

Please help me with this, and if you will please give me the entire code so I can just copy and paste. I am very new to coding.

God bless you all.

1 answer

first clone the part and put it in serverstorage then with code

workspace["Part"]:Destroy() -- rename Part to your parts name
wait(3)
local part = game.ServerStorage.Part:Clone() -- rename Part to your parts name
part.Parent = workspace

This discussion is preserved as it was. New answers, comments, and votes are closed.