#Help, my code won't work
1 messages · Page 1 of 1 (latest)
could you like send the whole script and not just 5 lines
okay
yeah
this is it
local collectionZone = script.Parent
local base = collectionZone.Parent
local auras = script.Parent.Parent:FindFirstChild("AuraStorage")
local auraStands = game.ServerStorage.Assets.AuraStands
local debounce = false
local function collectAura(aura: string)
if debounce then return end
debounce = true
for i, stand in auras:GetChildren() do
if stand.Value == "" then
stand.Value = aura
local displayedAura: Model = auraStands:FindFirstChild(aura):Clone()
displayedAura.PrimaryPart.Position = stand:FindFirstChild("Stand").Position + Vector3.new(0, 3.5, 0)
print("worked")
displayedAura.Parent = stand:FindFirstChild("Stand")
--for i, v in displayedAura:GetDescendants() do
-- if v:IsA("Part") then
-- v.Anchored = true
-- end
--end
end
end
end
collectionZone.Touched:Connect(function(part: BasePart)
if part:FindFirstAncestor("Auras") then
collectAura(part:FindFirstAncestorWhichIsA("Model").Name)
part:FindFirstAncestorWhichIsA("Model"):Destroy()
end
end)
yeah but how is it magically bypassing the debounce 😻
fr
yeah strange
i believe its because it only happens once and prevents the function from going again while its being used but after that one use it just breaks
dont set debounce = false at the end
if #auras:GetChildren() > 1 then it will spawn more then 1
I think thats the case here
it only will stop it once and never again
i already had it off
idk why its doing ts
no auras is for a diffrent folder
** You are now Level 6! **
im completly stumped!
auras is smth unrelated
how is auras something unrelated wehn you loop through it in your script and then clone a model for every child auras has?
thats pretty related in my opinion
its the stands and where the data for where the auras are being placed is at
the models are being cloned from another folder
and placed to where the aura stands are
local collectionZone = script.Parent
local base = collectionZone.Parent
local auras = script.Parent.Parent:FindFirstChild("AuraStorage")
local auraStands = game.ServerStorage.Assets.AuraStands
local debounce = false
local function collectAura(aura: string)
if debounce then return end
debounce = true
for i, stand in auras:GetChildren() do
if stand.Value == "" then
stand.Value = aura
local displayedAura: Model = auraStands:FindFirstChild(aura):Clone()
displayedAura.PrimaryPart.Position = stand:FindFirstChild("Stand").Position + Vector3.new(0, 3.5, 0)
print("worked")
displayedAura.Parent = stand:FindFirstChild("Stand")
--for i, v in displayedAura:GetDescendants() do
-- if v:IsA("Part") then
-- v.Anchored = true
-- end
--end
end
return
end
end
collectionZone.Touched:Connect(function(part: BasePart)
if part:FindFirstAncestor("Auras") then
collectAura(part:FindFirstAncestorWhichIsA("Model").Name)
part:FindFirstAncestorWhichIsA("Model"):Destroy()
end
end)
I bet you 1000€ that if you run this its only gonna spawn once
HOW
you can keep your 1000C= because it works, thank you
yeah keep the 1000$ (i cant find the € sign)
ello ello
if is a true
what’s the problem
I fixed it
so if debounce then you set debounce to true is the same thing
with a return
oh
.
yeah seems like it
LOL
Guys chill he’s learning.
Fr
😎
lol
i read it and saw the missing return
i saw this earlier
got too lazy to read the code cuz i’m on my phone and it’s tedious
🫩
literally
I dont get it why you would loop through something and then return at the first thing wehn theres 8 things that are capable of running the code
phone needs the lua thing
FR
yeah deadass
i find it fun 2 help people but i’m on my phone a lesser majority of my time
so it’s annoying to read thru here
its like reading this
local collectionZone = script.Parent
local base = collectionZone.Parent
local auras = script.Parent.Parent:FindFirstChild("AuraStorage")
local auraStands = game.ServerStorage.Assets.AuraStands
local debounce = false
local function collectAura(aura: string)
if debounce then return end
debounce = true
for i, stand in auras:GetChildren() do
if stand.Value == "" then
stand.Value = aura
local displayedAura: Model = auraStands:FindFirstChild(aura):Clone()
displayedAura.PrimaryPart.Position = stand:FindFirstChild("Stand").Position + Vector3.new(0, 3.5, 0)
print("worked")
displayedAura.Parent = stand:FindFirstChild("Stand")
--for i, v in displayedAura:GetDescendants() do
-- if v:IsA("Part") then
-- v.Anchored = true
-- end
--end
end
end
end
collectionZone.Touched:Connect(function(part: BasePart)
if part:FindFirstAncestor("Auras") then
collectAura(part:FindFirstAncestorWhichIsA("Model").Name)
part:FindFirstAncestorWhichIsA("Model"):Destroy()
end
end)
which is so painful
fr
inshallah we all make stupid 100 line cash grabs in the future and make a billion dollars
🤤🤤
so many brainrot ideas already though
feed a brainrot
grow a brainrot
steal a brainrot
fr tho roblox is the future in gaming industry
it’s the future in every industry bro ppl retire bloodlines off of 1 successful game
it’s insane
jandel literally became a millionaire over the span of weeks
cause we returned and thats the problem yall got we fix a issue and you guys have no idea how and then come back with the 2nd issue
its crazyyyyy
put the return in the if statement
well tbf he was already a millionaire
off of obby on a bike
yeah but he earnt Wayyyyyy more from gag
yeah ofc
like 10s of millions
biggest game global
jandel is just a great business man that has nothing todo with roblox tbf
try 100’s bro i see ppl blow their paychecks on grow a garden seed packs
ðŸ˜
valid valid
i’ve been tryna find commissions to do that aren’t out of my league and deadass it’s impossible
comms payout so much for so little though it’s insane
haven’t been able to get one yet
I dont have any left either
ngl creating ugc's or a good running game is way better anyways
cause of passive income
yeah but the problem of promo
i’ve never dropped any games yet so i wouldn’t know how to handle promo
tiktoks
not to mention i’ve heard sponsored ads r unreliable asf and u have to blow a shit ton on them
yea if u even gain traction on dat tiktok
Advertising on rblx isnt recommended since the ads that you saw in the home pages unexisted
if you upload 1-3 a day some will
sponsored ads still b rackin in players though
and if you go once into the roblox algorythm and your game is actually somewhat playable your gonna stay there for like 1-2 weeks
one guy got 100 active for like a week by investing 100 dollars over 5 days
If you're broke then not
I mean if you got lucky
That zombie tower game just blew up by instant
super unreliable. this game im a part of as a mod ran ads and also got content creators it wasnt really that good. got like 5k ccu from i think 15k robux in ads
which still made a profit for sure
but yk
.
trust
5k ccu is crazy good
from 15k
though
didnt stay consistent, now it is. but i think from all the hype of the release he earnt a couple mil back
so tbf not that bad