Hello, I am making a game where random models spawn around the map, I have already created the selecting service but need help making it spawn anywhere in the water of the map. Heres the script:
THIS IS A MODULE SCRIPT
--[[
Name: Trash Generator
Description: Generates and Spawns trash
Author(s): Axyanz (@Axyanz)
Date: Mar 12 - March 12th 2022 @ 3:05
]]
-- Values --
local Trash = game.ReplicatedStorage.Content.TrashCollection
local blacklist = {}
-- Generating System:
local function selectTrash()
return Trash:GetChildren()[math.random(1, #Trash:GetChildren())]
end