#Help with leaderstats

19 messages · Page 1 of 1 (latest)

severe bane
#

Why retrieve the player twice?

warped loom
#

brain has left the chat

bleak elm
#

what the hell skull

#

bro really doing game.Players:GetPlayerFromCharacter(game.Players)

warped loom
#

Player is your player...

icy dagger
#

hey

#

u fix?

#

if you didn't, i can help.

#

Can you try this script?

#

local BUY = script.Parent

BUY.MouseButton1Up:Connect(function()
local player = game.Players.LocalPlayer
if player then
local leaderstats = player:FindFirstChild("leaderstats")
local Bobux = leaderstats and leaderstats.Bobux
if Bobux and Bobux.Value >= 1 then
Bobux.Value -= 1
end
end
end)

#

@glacial flower

icy dagger
#

man

manic riverBOT
#

studio** You are now Level 4! **studio

icy dagger
#

u try script?

#

does?

#

Okay wait i need vouch

#

my code work?

#

@glacial flower

#

@glacial flower