How to fix the item when cloned the script inside it does not work Here is my code
game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(char) local p = game.Players:GetPlayerFromCharacter(char) game.ReplicatedStorage.Medkit:Clone().Parent = p.Backpack end) end)
Thank you
Try doing this instead.
game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(char) local p = game.Players:GetPlayerFromCharacter(char) local Medkit = game.ReplicatedStorage.Medkit:Clone() Medkit.Parent = p.Backpack end) end)