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

Answer this question