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

Ship not spawning after a while? [SOLVED]

Asked by 7 years ago
Edited 7 years ago

In games it breaks after a while I have no idea why. Is there a better way of spawning things in? - thanks

01debounce = true
02 
03 
04 
05 
06 
07 
08script.Parent.Touched:connect(function(hit)
09    if debounce == true then
10        debounce = false
11    local hum = hit.Parent:FindFirstChild("Humanoid")
12        if hum ~= nil then
13        local player = game.Players:GetPlayerFromCharacter(hit.Parent)
14        local treasure = player.leaderstats.Treasure
15        if treasure.Value == 0 or treasure.Value > 0 then
View all 28 lines...

I solved it by respawning the spawners every 120 seconds incase they broke if anyone has this problem in the future.

0
Ty Radstar1 270 — 7y

Answer this question