Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 1 year ago

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

Log in to vote
0
Answered by 1 year ago
Edited 1 year ago

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
Ad

Answer this question