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

Help me with my buy script. How do i make it - price? I cant get it to know what price is.

Asked by 5 years ago

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.

2
Could you plese ident and use the code block? cailir 284 — 5y
1
Why do you try to find the player at `ServerStorage` and not at `Players`? cailir 284 — 5y
0
Uh idk. I have the values that saves the money in there... roo12341234 -8 — 5y
0
).Bux bux did you forget a period or is this one word? if so )["Bux bux"].Value zor_os 70 — 5y
0
@zor_os it don't has more than one world, it's an new line... cailir 284 — 5y

Answer this question