anyone know why this isn’t working? the phone will randomly despawn 3 seconds after it is spawned into workspace
while true do
local chance = math.random(1,1)
if chance == 1 then
local phone = game.ServerStorage["Box Phone"]:Clone()
phone.Parent = game.Workspace.ToFind
end
local box = Instance.new("Part")
task.wait(1)
box.Name = "Box"
box.Size = Vector3.new(2,2,2)
box.Parent = workspace.Biomes.Industrial
box.Position = script.Parent.Position
box.Material = Enum.Material.SmoothPlastic
box.Color = Color3.fromRGB(188, 155, 93)
task.wait(40)
box:Destroy()
end