I want to modify this card so the first person to hold the card will have their details saved to the card so if it is dropped or stolen then it still says the same name instead of resetting and displaying the new holders name.
Im not sure how I would do this.
code to get information:
script.Parent.Equipped:Connect(function()
script.Parent.Info:FireServer(tostring(player.AccountAge),tostring(player.UserId))
local gui = script.IDCard.Main
gui.Age.Text = "Account Age (Days): " .. tostring(player.AccountAge)
gui.ID.Text = "ID: " .. tostring(player.UserId)
gui.PlayerName.Text = "Name: " .. player.Name
gui.ProfilePic.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username=" .. player.Name
end)
Code to display info onto card:
script.Parent.Info.OnServerEvent:Connect(function(player,age,id)
gui.Age.Text = "Account Age (Days): " .. age
gui.ID.Text = "ID: " .. id
gui.PlayerName.Text = "Name: " .. player.Name
gui.ProfilePic.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username=" .. player.Name
end)