first script: local plr = game.Players.LocalPlayer local money = plr:WaitForChild("Silver"):FindFirstChild("Amount")
plr.Character.Humanoid.Died:Connect(function() script.Parent.Touched:connect(function() plr.money.Value = plr.money.Value + 1 end) end)
second script: plr.Character.Humanoid.Died:Connect(function() script.Parent.Transparency = 0 end end)
why wont both work?
im guessing this is a server script and if im right then the reason it dont work is because local player cant be accessed by the server, instead use a local script and fire a remote event to the server that tells it to change the values