Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

FE not able to clone tool to two places at once?

Asked by
0msh 333 Moderation Voter
6 years ago

here's my code and it's in ServerScriptService:

wait(3)
function broadcast(player, stuff, rarity)
        local a = game:GetService("ReplicatedStorage"):WaitForChild("Items"):WaitForChild(stuff):WaitForChild(stuff):Clone()
        a.Parent = player.Backpack and player.StarterGear
    game.ReplicatedStorage.broadcast2:FireAllClients(player, stuff, rarity)
end

game.ReplicatedStorage.broadcast1.OnServerEvent:Connect(broadcast)

Answer this question