hi, im making a one piece game but need the df spawn script someone can tell me how is it?
Assuming you want random things to spawn in random places, make a model named "Spawns" and place parts where you want things to spawn then use this script:
local Spawns = workspace:WaitForChild("Spawns") local WaitTime = 5 -- Change 5 to the time between something spawning local PartBeingSpawned = game.ReplicatedStorage:WaitForChild("ITEM") -- Change ITEM to what's being spawned while wait(WaitTime) do local Part = PartBeingSpawned:Clone() local Spawn = Spawns:GetChildren()[math.random(1,#Spawns:GetChildren())] Part.Position = Spawn.Position Part.Parent = workspace end