#How do i make a script apply to all parts that its linked to simultainiously, and not waiting

1 messages · Page 1 of 1 (latest)

vestal fjord
#

This script handles a respawning action for all parts that have the tag Touched, this works, but it waits 5 seconds inbetween each respawn, not inbetween each touch which is obvious

#

how would one make a script that does the respawning 5 seconds after it has been touched?

crimson idol
vestal fjord
#

the respawning works, but its 5 seconds inbetween each respawn, not 5 seconds after the part has been touched because i kinda coded it that way lol

#

i want to know how to go from -> 5 seconds between each respawn to -> 5 seconds after it has been touched

#

i think i should use debris for that

crimson idol
#

CollectionService:GetInstanceAddedSignal("Touched"):Connect(function(foodItem)
-- your code
end)

#

still dont know if thats what u want