So I just started scripting for a while and I am trying to make a item reward system that when the part get touch it will drop two items. I have put two swords in Replicate storage and write a script for the part but it didn’t work.
Do you guys have any idea what I should fix?
This the script that I have use for the part:
script.Reward.Touched:Connect(function(Touched)
end)
local Drops = game.ReplicatedStorage.Drops:GetChildren()
local RandomDrop = Drops[math.random(2,#Drops)]
local ds = RandomDrop:Clone()
ds.Parent = workspace