I attempted to make a card drop when the Player dies, it works in studio, however not on website. (Regular Script) I can't figure this out:
game:GetService('Players').PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) character:WaitForChild("Humanoid").Died:connect(function() local Ca = game.Players.LocalPlayer.Backpack.Card.Handle local Despawn = game.ServerStorage.DespawnScript:Clone(1) Ca.Parent.Parent = workspace Ca.Position = player.character.Torso.Position Despawn.Parent = Ca.Parent Despawn.Disabled = false end) end) end)