I need to somehow get the player name to a stringvalue in ReplicatedStorage
-- Local script in StarterPlayerScripts while true do wait(5) game.ReplicatedStorage.player.Value = game.Players.LocalPlayer.Name print(game.ReplicatedStorage.player.Value) game.ReplicatedStorage.money:FireServer() end
-- Script in game.Workspace game.ReplicatedStorage.money.OnServerEvent:Connect(function() p = game.ReplicatedStorage.player.Value print(game.ReplicatedStorage.player.Value) print(game.Players[p].leaderstats.Hidden.Wins.Value) if game.Players[p].leaderstats.Hidden.Wins.Value > 9 then game.Players[p].leaderstats.Credits.Value = game.Players[p].leaderstats.Credits.Value + 20 else game.Players[p].leaderstats.Credits.Value = game.Players[p].leaderstats.Credits.Value + 10 end end)
The localscript changes the value, but the server is just ignoring it, and "p" is empty