#How do I code a pizza delivery system and it randomizes the delivery place

1 messages · Page 1 of 1 (latest)

gusty scarab
#

I've been trying to do it myself with mixed result, can anyone help me??😭

wicked coral
#

what results have you gotten

wicked coral
gusty scarab
#

I've just started again

wicked coral
#

do you need pathfinding?

gusty scarab
wicked coral
#

or just like teleports infront of u

gusty scarab
wicked coral
gusty scarab
#

Yep

wicked coral
# gusty scarab Yep
local houses = game.Workspace:WaitForChild("houses"):GetChildren()

local pizza = --your pizza model

for i = 1, 10 do
    local clone = pizza:Clone()
    local cframe = houses[math.random(1, #houses)].CFrame
    
    clone.CFrame = cframe + CFrame.new(0,0,0) -- change 0,0,0 to where you want it to spawn at the house
    clone.Parent = game.Workspace
end
bold relicBOT
#

studio** You are now Level 7! **studio

wicked coral
#

does that work?

#

@gusty scarab

#

you need all the house models in a folder named houses

gusty scarab
#

I'll test it later cuz I'm going to go to my grandparents house but thx!

wicked coral
#

ok

gusty scarab
#

If it doesn't work I'll tell u:D

#

Oh yea what type of script is it and where do I put it

wicked coral
gusty scarab
#

Is it a local script?

bold relicBOT
#

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

wicked coral
#

...

#

read

gusty scarab
#

Oh

#

heheyummy

wicked coral