i have the remote event and the button part down, and can make it clone but it only clones the model once instead of repeatedly cloning the model
local unit = game:GetService("ReplicatedStorage"):WaitForChild("Viking"):Clone() local function cloneUnit(player) print(player.Name) unit.Parent = workspace end
local unit = game:GetService("ReplicatedStorage"):WaitForChild("Viking") local function cloneUnit(player) print(player.Name) local unitClone = unit:Clone() unitClone.Parent = workspace end
try this?
simple
local function cloneUnit(player) for i = 1,100 -- 100 is how many times it will be cloned local unit = game:GetService("ReplicatedStorage"):WaitForChild("Viking"):Clone() print(player.Name) unit.Parent = workspace wait(1) -- use this as it will lag the server end end