Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i get the Player with a server script?

Asked by 5 years ago
Edited 5 years ago

game.ReplicatedStorage.events100.RemoteEvent11.OnServerEvent:Connect(function(player) player.iden.populationValue.Value = 4 end)

game.ReplicatedStorage.events100.RemoteEvent13.OnServerEvent:Connect(function(player) player.iden.populationValue.Value = 3 end)

game.ReplicatedStorage.events100.RemoteEvent12.OnServerEvent:Connect(function(player) player.iden.populationValue.Value = 2 end)

game.ReplicatedStorage.events100.RemoteEvent14.OnServerEvent:Connect(function(player) player.iden.populationValue.Value = 1 end)

game.ReplicatedStorage.events100.RemoteEvent15.OnServerEvent:Connect(function(player) player.iden.populationValue.Value = 5 end)

THE ERROR
08:53:20.008 - iden is not a valid member of Player 08:53:20.009 - Script 'Workspace.Provinces.dec4.popScript', Line 3

iden is a value inside of player and populationvalue is a value inside of iden

Answer this question