#uhhh the anchoring problem

1 messages · Page 1 of 1 (latest)

unreal knoll
#

when i anchor the clone of my ore it stops working (i commented it and then it worked)
script

local CoalSpawner = script.Parent
local SS = game:GetService("ServerStorage")
local CoalOre = SS.Ore.MineableCoal
local cooldown = 6
local IsMined = false
local originalPos = CoalSpawner.Position

local function SpawnCoal()
if IsMined then return end
CoalOreSpawned = CoalOre:Clone()
CoalOreSpawned.Parent = CoalSpawner
CoalOreSpawned.Position = originalPos
--CoalOreSpawned.Anchored = true
IsMined = true
end

local function WaitingForDeath()
while IsMined == false do
wait(10)
CoalAlive = CoalSpawner:FindFirstChild("MineableCoal")
if CoalAlive == nil then
SpawnCoal()
end
end
end

local function WaitForAlive()
while IsMined == true do
wait(cooldown)
IsMined = false
end
end

SpawnCoal()

#

My hitbox pickaxe system used a spawning instance of an anchored hitbox the tutorial didnt anchor it but i anchored it out of the goodness of my heart and ive always debugged using the ore unanchored should i unanchore hitbox when spawning?

#

Ima go try and unanchor hitbox in the mean time

#

Yooo what i unanchored hitbox and it worked

#

Well while we are at it

#

Why did thos happen

rancid steeple
#

Your tryna anchor the group

#

you have to anchor individual parts