Hey there!
I’ve never used this tycoon kit before but I would assume your issue is that your changes aren’t replicating to the server and that the client can not access ServerStorage. To fix this, you would use a Remote Event or Remote Function.
Here’s how you would do it...
Local Script
local event = game.ReplicatedStorage.RemoteEvent
script.Parent.MouseButton1Down:Connect (function()
event:FireServer(100000)
end)
Server Script (put this in ServerScriptService)
local event = game.ReplicatedStorage.RemoteEvent
local plrm = game.ServerStorage.PlayerMoney
event.OnServerEvent:Connect (function(plr, amount)
plrm[plr.Name].Value = plrm[plr.Name].Value + amount
end)
Note: you’ll need to insert a RemoteEvent into ReplicatedStorage
If this didn’t help, feel free to comment with any questions regarding your issue.
If this helped, please accept and upvote this answer.
3 comments
It's a local script if that helps.
The contents of ServerStorage are not replicated to clients at all; move the "PlayerMoney" to ReplicatedStorage or use a RemoteEvent.
On row 4 you've written; game.ServerStorage.PlayerMoney.game.Players.LocalPlayer