#I Try To Do a Backpack Thing But It's Not Working Can Someone Help?
122 messages · Page 1 of 1 (latest)
bagholder script is this
Im not a scripter yet but maybe it's bc u have the same thing twice so maybe it should've been "if bullet.Value > bagholder.Value then bagholder.Value = bullet.Value
Or bc of the ">" instead of the " ="
no if bullets value is higher than the bagholder it will be same with the bag value
a backpack thing
thank you :)
Bc as sais im not a scripter yet😅😭
i added while true() do but its not even working too
Np💖
yeah im trying to be too
💖
Any syntax
Show me bullets
** You are now Level 4! **
Syntax errors
yes
What is happening instead
Ok show me bullets script
this is guns script
its like x2 of bullet
** You are now Level 2! **
Btw u aaid at first bullet.Value > bagholder.Value then why did u say "then bullet.Value = bagholder.Value"?
10 script should be after that
how to make it to be after that
Move the code to be below it
wdym
The thread will go through and run that after so that it actually goes back down
its like that
It says first that bagholders value is more than the bullets but then it says its equal
Paste the full script in here
there is if
The contents of the script
yes then
ok
U gonna paste it
to where
This chat bruh
oh
local plr = game:GetService("Players")
local player = plr.LocalPlayer
local boost = script.Parent.Boost
script.Parent.Activated:Connect(function()
player.leaderstats.Bullets.Value = player.leaderstats.Bullets.Value + 1 + boost.Value
script.Enabled = false
wait(1)
script.Enabled = true
end)
how man
Oh bruh
i cant understand that
You have them all as seperate
yes
U should combine them into one script
and send here
Just put the part where it sets the bullets to 10
Under the part where it adds bullet when you shoot
I can think of a way to just edit the bullet adding script that might fix it as well if that doesn't
wait i will check
That should be the first thing you look at always
no
U can just scrap the whole bag holder script and add it to the addition thing
If player.leaderstats.Bullets.Value < 10 then
Player.leaderstats.Bullets.Value = player.leaderstats.bullets.value + 1
If it's 10 then this will not run
but i need to make a bag value bcs i will make a shop to buy bag
If not work idk I'm dumb
but letme check
this
it didnt worked too
man it says bullets is not valid
it just goes 10 fast
ig the tool just makes the error
** You are now Level 3! **
ty man
nvm i figured it ouy
What was it I'm curious
Hm ok
Haven't played around with tools too much
oh ok
Nice job
thx for ur help