game.ReplicatedStorage.Buy.OnServerEvent:Connect(function(player) local bux = game.ServerStorage:FindFirstChild(player.Name).Bux bux.Value = bux.Value - player.Price.Value end)

This is in a script and i know what the problem is but idk how to fix it please help.

5 comments

2

Could you plese ident and use the code block?

1

Why do you try to find the player at ServerStorage and not at Players?

0

Uh idk. I have the values that saves the money in there...

0

).Bux bux did you forget a period or is this one word? if so )["Bux bux"].Value

0

@zor_os it don't has more than one world, it's an new line...