#does anyone know how to do the full coins script like bubble gum simulator?
1 messages · Page 1 of 1 (latest)
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)
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
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
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
oh mbmbm
oh here goes
i meant the "full" is the all of the script you guys know in "coins"
i didn't actually mean by full script LOL
really.
all that i know is leadertstas and how to put in gui
mb
alr thats good help 🙂
and if u want to pick up coins i can do that aswell
i think thats easy actually
with the thing?
wait lemme show
yoo im so jealous
all of the scripters says its ez
like this too with the pickup?
u jsut gotta leran it not that hard once u leran
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
thing is depends what u anme all ur stuff
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
my coins is named coins
or use my scripts and remane
yeah but isnt just change it?
Coin*
yea
i mean i can use your script
here
oh in like tab?
?
u mean in the leaderboard?
yh
i dont think this is what u want
u want a script that checks when the player has the full amount of coins?
yo @wheat sand im guessing u making a game like bubble gum sim
** You are now Level 3! **
yes
i can help u out if u like
just inspired
fr?
yh why not
ohhh W
whats ur user ill add u
so the problem is solved?
Alpha_Zey display is Zeynoxie
yo i added u
alr
jsut inv me to studio and ill fix it
its a test world yet
kk
yo
your in game right
yhh
i jsut making th cins rn
we will strt with the coin then the gui
its a chocolate coin
yh i paste it into that after aswell
alright
isn't that gonna take time?
damm
in dc
amd
kk
Don’t ping everyone + learn basics
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...