You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I want to achieve an increasing value of money (100) after the task is done. -
What is the issue? Include screenshots / videos if possible!
If 1 person is playing the game, money increases by 100.
If there’s 2 people, it increases by 200 etc.
And i want it to increase by 100 for one person. -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried to find solutions, but no luck.
Main (server) Code:
game.ReplicatedStorage.WriteCode.OnServerEvent:Connect(function(player)
if player.other.linesremain.Value >= 1 then
player.other.linesremain.Value = player.other.linesremain.Value - player.other.knowledge.Value
if player.other.linesremain.Value < 1 then
game.ReplicatedStorage.hidemaking:FireClient(player)
wait()
end
end
end)
game.ReplicatedStorage.FinishedCoding.OnServerEvent:Connect(function(player)
player.other.knowledge.Value = player.other.knowledge.Value + 1
game.ReplicatedStorage.levelup:FireClient(player)
player.leaderstats.Cash.Value = player.leaderstats.Cash.Value + 100
end)