#How do I code a pizza delivery system and it randomizes the delivery place
1 messages · Page 1 of 1 (latest)
what results have you gotten
can we see ur code or are you restarting from scratch?
I've just started again
do you need pathfinding?
The best one is when it gave me the pizza
or just like teleports infront of u
It kinda randomizes around the map
like houses?
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
** You are now Level 7! **
does that work?
@gusty scarab
you need all the house models in a folder named houses
I'll test it later cuz I'm going to go to my grandparents house but thx!
ok
If it doesn't work I'll tell u:D
Oh yea what type of script is it and where do I put it
server script in server script service
Is it a local script?
** You are now Level 1! **
