#Spawner of dropper

1 messages · Page 1 of 1 (latest)

fringe helm
#

The spawner is not coming from my dropper how to fix ti

cinder flax
# fringe helm The spawner is not coming from my dropper how to fix ti

Two options:

  1. Add an attachment to the part where you want the part to spawn. Use the attachment's WorldCFrame to tell the part where to spawn
  2. Add an invisible, no-collide anchored version of the dropped part. Clone that every drop, resetting transparency, no-collide, and anchored.
fringe helm
viscid skiffBOT
#

studio** You are now Level 1! **studio

cinder flax
fringe helm
fringe helm
#

Next what do i do?

cinder flax
fringe helm
#

I add anyhting to this in attachment?

cinder flax
cinder flax
fringe helm
#

Done i want spawn herre

cinder flax
fringe helm
#

local tycoon = script.parent.parent.parent

local dropperPartsFolder = tycoon:FindFirstChild("DropperParts")
local dropColorValue = tycoon:FindFirstChild("Values").DropColorValue
local materialValue = tycoon:FindFirstChild ("Values").MaterialValue

local billboardGui = game.ReplicatedStorage:FindFirstChild("BillboardGui")

while wait(3) do
local cloneGui = billboardGui:Clone()

local part = Instance.new ("Part", dropperPartsFolder)
part.Size = Vector3.new (1,1,1)
part.BrickColor = dropColorValue.Value
part.Material = materialValue.Value
part.Name = "DropperPart"
part.CFrame = script.parent.Spawner.CFrame

local cashValue = Instance.new("IntValue", part)
cashValue.Value = 5
cashValue.Name = "CashValue"

cloneGui.Parent = part
cloneGui.Frame.TextLabel.Text = "$"..cashValue.Value.." Cash"

game.Debris:AddItem(part, 15)

end

#

This is the script

#

Which i change?

cinder flax
fringe helm
#

Wait i see it

#

its -0.458, 0, 0.5

cinder flax
fringe helm
cinder flax
#

In the script, change the position you're currently using to the .WorldCFrame of the attachment, don't copy and paste the property value

fringe helm
#

This is the script where i add the position?

viscid skiffBOT
#

studio** You are now Level 2! **studio

cinder flax
fringe helm
#

local tycoon = script.Parent.Parent.Parent

local dropperPartsFolder = tycoon:FindFirstChild("DropperParts")
local dropColorValue = tycoon:FindFirstChild("Values").DropColorValue
local materialValue = tycoon:FindFirstChild("Values").MaterialValue

local billboardGui = game.ReplicatedStorage:FindFirstChild("BillboardGui")

-- Reference to the attachment to position the part
local attachment = script.Parent:FindFirstChild("Attachment") -- adjust path if needed

while wait(3) do
local cloneGui = billboardGui:Clone()

local part = Instance.new("Part", dropperPartsFolder)
part.Size = Vector3.new(1, 1, 1)
part.BrickColor = dropColorValue.Value
part.Material = materialValue.Value
part.Name = "DropperPart"

-- Set CFrame using the attachment’s WorldCFrame
if attachment then
    part.CFrame = attachment.WorldCFrame
else
    warn("Attachment not found, defaulting to Spawner CFrame")
    part.CFrame = script.Parent.Spawner.CFrame
end

local cashValue = Instance.new("IntValue", part)
cashValue.Value = 5
cashValue.Name = "CashValue"

cloneGui.Parent = part
cloneGui.Frame.TextLabel.Text = "$" .. cashValue.Value .. " Cash"

game.Debris:AddItem(part, 15)

end

#

This is my script now

#

Anything add to this?

cinder flax
fringe helm
cinder flax
cinder flax
# fringe helm

It looks to me as if you're using AI to generate your code, yes

fringe helm
cinder flax
fringe helm
cinder flax
# fringe helm Oh

I won't be able to help you in that case, as you won't know how to implement the changes I suggest. Ask AI until it works or use YouTube tutorials.

Eventually maybe you'll feel up to actually learning how to script.

fringe helm
#

Can you suggest how to learn script

cinder flax
queen meteor
#

theres no interest in creating game when ai literally scripts everything for you

#

watch tutorials

#

it's not easy but who said it's gonna be easy

fringe helm
#

But i dont know how to make scripts

queen meteor
#

learn

#

ur never gonna learn by asking ai

fringe helm
#

Can you suggest any way

queen meteor
#

Beginner's Roblox Scripting Tutorial #1 - Roblox Studio Basics (Beginner to Pro 2019)

Link to Beginner's Tutorial Series:
https://www.youtube.com/playlist?list=PLhieaQmOk7nIfMZ1UmvKGPrwuwQVwAvFa

Link to download Roblox Studio:
https://www.roblox.com/create

Social Media:
https://twitter.com/realtapwater
https://instagram.com/realtapwater

New...

▶ Play video
#

watch

#

and repeat

#

then you can watch advanced scripting by him too

#

thats the way i learned

#

and other videos too

#

but this is the main source

fringe helm
#

Ok