#does anyone know how to do the full coins script like bubble gum simulator?

1 messages · Page 1 of 1 (latest)

wheat sand
#

@everyone @here do any scripters know how?

unkempt leaf
#

Put this in StarterPlayer > StarterCharacterScripts as a Script:

lua
Copy
Edit
local function onPlayerAdded(player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player

local coins = Instance.new("IntValue")
coins.Name = "Coins"
coins.Value = 0
coins.Parent = leaderstats

end

game.Players.PlayerAdded:Connect(onPlayerAdded)

maiden wing
#

i think he wants the game checks when the player is full of money

#

not by player added

#

checks when a player do a action

unkempt leaf
#

local player = game.Players.LocalPlayer
local leaderstats = player:WaitForChild("leaderstats")
local coins = leaderstats:WaitForChild("Coins")

local textLabel = script.Parent

-- Update text whenever coins change
coins.Changed:Connect(function(newValue)
textLabel.Text = "Coins: " .. coins.Value
end)

-- Set initial value
textLabel.Text = "Coins: " .. coins.Value
this is alos for it to show on gui

#

what show it saves the leader stats

#

or when ur go up to a current amonut it stops

maiden wing
#

ok

#

thats gud

unkempt leaf
#

if its that only he can do it if it like bubble gum i need all the upgrades and everthing so i can amke it script where it stops at a certen amonut

wheat sand
#

oh mbmbm

maiden wing
#

oh here goes

wheat sand
#

i meant the "full" is the all of the script you guys know in "coins"

#

i didn't actually mean by full script LOL

maiden wing
#

really.

unkempt leaf
#

all that i know is leadertstas and how to put in gui

wheat sand
wheat sand
unkempt leaf
#

and if u want to pick up coins i can do that aswell

maiden wing
#

i think thats easy actually

wheat sand
#

wait lemme show

wheat sand
#

all of the scripters says its ez

#

like this too with the pickup?

unkempt leaf
#

u jsut gotta leran it not that hard once u leran

maiden wing
#

local full = 100 -- exampol numbah

coins.Changed:Connect(function(newValue)
if coins.Value == full then
fullcoinsgui.Enabled = true
end
textLabel.Text = "Coins: " .. coins.Value
end)

#

i think its this

unkempt leaf
#

thing is depends what u anme all ur stuff

maiden wing
#

yeah

#

i think its better do a value for the full amount

unkempt leaf
#

lets say if coins is named coins but in lerader its named gold it wont work

#

so rlly u got to do it ur self

wheat sand
#

my coins is named coins

unkempt leaf
#

or use my scripts and remane

maiden wing
#

yeah but isnt just change it?

wheat sand
#

Coin*

wheat sand
wheat sand
unkempt leaf
#

yh it above the chat

#

somewhere 🙂

wheat sand
#

what does it do?

#

bt

#

btw

maiden wing
#

it creates a new coins leaderstats

#

but idk if u need that

wheat sand
#

oh in like tab?

maiden wing
#

?

wheat sand
#

like in tab?

#

on your name

maiden wing
#

u mean in the leaderboard?

wheat sand
#

on the side

#

it shows coin?

#

does it do this?

maiden wing
#

OH

#

yes

wheat sand
#

i think thats what it doe

#

ohh lol

unkempt leaf
#

yh

maiden wing
#

i dont think this is what u want

wheat sand
#

yeah

#

i would like it at the side

#

it needs frames for that right

maiden wing
#

u want a script that checks when the player has the full amount of coins?

unkempt leaf
#

yo @wheat sand im guessing u making a game like bubble gum sim

meager thunderBOT
#

studio** You are now Level 3! **studio

unkempt leaf
#

i can help u out if u like

wheat sand
#

just inspired

wheat sand
unkempt leaf
#

yh why not

wheat sand
#

ohhh W

unkempt leaf
#

whats ur user ill add u

maiden wing
#

so the problem is solved?

wheat sand
#

Alpha_Zey display is Zeynoxie

wheat sand
#

🔥

maiden wing
#

oh ok

#

i need to sleep so

#

good luck with ur game

wheat sand
#

alr gn

wheat sand
#

@unkempt leaf

unkempt leaf
#

yo i added u

wheat sand
#

alr

unkempt leaf
#

jsut inv me to studio and ill fix it

wheat sand
#

its a test world yet

unkempt leaf
#

kk

wheat sand
#

alright

#

done

#

uhh btw

#

i dont know how to invite people in studio

unkempt leaf
#

one sec ill shwo u

#

there

#

thats jsut there when u load the game

wheat sand
#

done

#

yoyo

unkempt leaf
#

yo

wheat sand
#

your in game right

unkempt leaf
#

yhh

wheat sand
#

alr

#

so what we doing

unkempt leaf
#

i jsut making th cins rn

wheat sand
#

ohh

#

i have a coin model

unkempt leaf
#

we will strt with the coin then the gui

wheat sand
#

its a chocolate coin

unkempt leaf
#

yh i paste it into that after aswell

wheat sand
#

alright

unkempt leaf
#

we can do diff coins for each world

#

so like cndy world can have the choclate coin

wheat sand
#

isn't that gonna take time?

unkempt leaf
#

naa

#

it wont

wheat sand
#

alright

#

because

#

it took me 15h for a coin model

#

yo

#

btw

#

can you add me

unkempt leaf
#

damm

wheat sand
#

in dc

unkempt leaf
#

amd

wheat sand
#

ill add you

#

?

unkempt leaf
#

kk

red spindle
#

You’re not all that

#

Who does he think he is

#

Impatience at its peak

#

Listen to all this

#

At don’t you dare ping everyone

#

Impatient ass

#

You’ll need this too

#

PATREON🎁
Get Access to My Scripts + More Perks by Becoming a Patreon Member!
https://www.patreon.com/BrawlDev

DISCORD 📜
Join my Discord Community if you want scripting help, participate in events/challenges, and make friends!
https://discord.gg/WC6kPu5W5P

ADVANCED ROBLOX SCRIPTING SERIES 🔴
https://www.youtube.com/playlist?list=PLQ1Qd...

▶ Play video