Holy I've watched all the tutorials but the people in the comments are just so talented makes feel like I learned nothing
@XqlWasTaken4 ай бұрын
for real my code doesnt even work
@TropialGamingYT4 ай бұрын
same
@GraphEnotik-xs4gb3 ай бұрын
@@XqlWasTaken just use some debug methods like print.
@ways80273 ай бұрын
whenever u feel stupid, you are learning its how it is
@ElTonio20232 ай бұрын
@@ways8027 exactly
@BAKADatebayo2 ай бұрын
Decided to incorporate the Kill Brick script into this assignment to mesh the learnings together. I created two functions. One function supply's the user coins if they touch a specific block, while the other makes the player lose coins and die if they touch another local coinPart = game.Workspace.TouchPart local debounce = false coinPart.Touched:Connect(function(otherPart) if debounce == false then debounce = true print(otherPart) coins.Value = coins.Value + 10 task.wait(2) debounce = false end end) local lossPart = game.Workspace.KillBrick lossPart.Touched:Connect(function(otherPart) if debounce == false and coins.Value > 10 then debounce = true print(otherPart) coins.Value = coins.Value - 10 task.wait(2) debounce = false end end)
@Stream78122 ай бұрын
The scripts are in defferent parts?
@osakadev5 ай бұрын
Today's Summary: playerstats (or leaderstats), is a special folder created inside the player instance which will contain IntValues or other values which will be displayed as a table in the players list to the player in the game This type of playerstats are used in games like Pet Simulator X, Bee Swarm Simulator and millions more How to create instances: - First of all, an instance is EVERYTHING that makes up a game, 3D objects, 2D objects, services and EVERYTHING contained in the explorer (even hidden services) - To create instances dynamically you use the class "Instance", to do it, you do it this way: local myPart = Instance.new("Part") myPart.Parent = workspace myPart.Anchored = true -- we can change all the properties that a part has! The first parameter of "Instance.new", is the name of the class (of the object to create) of the object that we want to create It is important to know that this function returns the instance that you have just created, so if you don't change the parent, only the memory will exist but not visually How to create stats in the players list: - You need to create a folder whose name MUST be "leaderstats" (so did roblox, don't ask). Then you will need to assign the parent to the player who joins the game - Then you must create intvalues, numbervalues and other things inside the folder For example: local folder = Instance.new("Folder") folder.Parent = player -- IMPORTANT folder.Name = "leaderstats" -- IMPORTANT local coins = Instance.new("IntValue") coins.Parent = folder coins.Name = "Coins".
@OuzeHD5 ай бұрын
dang
@TropialGamingYT4 ай бұрын
Im just copy n pasting what u say on a Google Doc cuz im too lazy to write...
@madshark2924Ай бұрын
@@TropialGamingYT basic what im doing
@yadukrishn4 ай бұрын
"hello world" (print)
@reaklaz4 ай бұрын
nuh uh 😭
@Rafibhai196Ай бұрын
💀🙏
@Who1156Ай бұрын
W code
@Rafibhai196Ай бұрын
@@Who1156 😂😂 print("im LEARNING")
@UsBallVilockea24Ай бұрын
What code is this🤔🤔🤔🤔
@TropialGamingYT4 ай бұрын
Bro this I did a tutorial couple of months ago and i was so puzzles with the Leader boards stats. But now you showed me so much to leader board stats that this has boosted my motivation on developing games to Max. This Defiantly Deserved way more Likes and Views, this is peak Scripting Tutorials!!!
@SYN_Nir2 ай бұрын
same XD
@Joaopedro-ev2py5 ай бұрын
New subscriber! From Brazil
@Sadmar092 ай бұрын
New subscriber from spain, I hope this tutorials help me make my dream games
@ElTonio20232 ай бұрын
good luck bro!👍
@olizero3 күн бұрын
bro ngl its like my 8th hour watching those today and ur teaching so good that it feels so easy to make scripts now and before id have to google every script even after tutorials
@DanTe3_9 күн бұрын
I'm watching every single one of these tutorials, and, while i watch, im doing a WHOLE ESSAY about them, i have everything noted on my dms and i basically have some clever explanations of what happens here in my native language! these tutorials help alot you learn from thee bottom
@60YS6 күн бұрын
dude may i please have the text you have so i can read over discord 6oys if you can send it over
@McChillingTon73616 күн бұрын
I always love your videos man very educational
@bazerduck12345 ай бұрын
OMG! this crazy! i just created a block , that when touched, changes its color and gives you money! cudnt have done this without you! thanks a lot man
@CrimsonMoonVr1015 ай бұрын
Pls tell me how
@bazerduck12345 ай бұрын
@@CrimsonMoonVr101 local killBrick = script.Parent local bool = false game.Players.PlayerAdded:Connect(function(player) local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = player local Money = Instance.new("IntValue") Money.Parent = leaderstats Money.Name = "Money" Money.Value = 0 task.wait(1) killBrick.Touched:Connect(function(otherPart) if bool == false then bool = true Money.Value += 1 killBrick.BrickColor = BrickColor.new("Really red") task.wait(0.5) killBrick.BrickColor = BrickColor.new("Medium stone grey") task.wait(0.5) if Money.Value % 10 == 1 and Money.Value ~= 1 then killBrick.BrickColor = BrickColor.new("Pink") task.wait(5) end bool = false end end) end)
@thessuperrooster50064 ай бұрын
@@CrimsonMoonVr101 Learn
@Ismalellel4 ай бұрын
dude, when i readed your comment i did the same and it worked!!! it's crazy bc i didnt know i could do this, im so happy too :D!
@Dennis_3077Ай бұрын
if you watch and do at the same time you can learn that pretty easy. And if you cant do that, watch the series again.
@ItzBlixYT2 ай бұрын
i fogo- loops and tables but decided to watch a begginer scripting series complete and now i think thank god i watched again or else i wouldve beeen able to do nothing
@basic91225 ай бұрын
Keep up the work dude. This has got to be the best playlist for scripting. Love the work!!
@CupOfShoess5 ай бұрын
keep it up! love this searies just found it im gonna start reaching for my dreams again!
@kwarw3 ай бұрын
Thank you so much!! really helped game.Players.PlayerAdded:Connect(function(player) local leaderstats = Instance.new('Folder') leaderstats.Name = 'leaderstats' leaderstats.Parent = player local seconds = Instance.new('IntValue') seconds.Name = 'Seconds' seconds.Value = 0 seconds.Parent = leaderstats local minutes = Instance.new('IntValue') minutes.Name = 'Minutes' minutes.Value = 0 minutes.Parent = leaderstats while player.Parent do task.wait(1) seconds.Value = seconds.Value + 1 if seconds.Value >= 60 then seconds.Value = 0 minutes.Value = minutes.Value + 1 end end end)
@egggrenade27462 ай бұрын
Alright men, you have made it this far. May you be ready for the beast of the next episode. May god help you understand the final trial called ''tables''
@CooperTrooper2942 ай бұрын
gulp
@ismailzantemirov2169Ай бұрын
you actually scared me..
@SamOrPixАй бұрын
i feel so talented after going over this once i understand it all
@Martin_GMZ125 ай бұрын
Yes! new video
@zorouhrblx5 ай бұрын
i thought you quit, i didnt know you had a new channel lol
@BrawlDevRBLX5 ай бұрын
Yesssir! Glad you found me again! 😊
@z1ngetsuuАй бұрын
what is his other channel
@ManCatGravy_PlaysRussoАй бұрын
@@z1ngetsuu sigmaplayz_YT
@funnyreal3323 ай бұрын
tahnks soh much i just made a game with randomly falling asteroids with random sizes and velocities that kill you on touch and now that i watched this a timesurvived stat that increases every second and resets when you die, that is also a way i put badges in my game like if the timesurvived is already equal to 30 then u get the badge survive 30 seconds (devforum carried me)
@Moxuw_5 ай бұрын
New subscriber from France !
@HistoryEditss5 ай бұрын
New Subscriber! You Making Good Videos
@j4cob4364 ай бұрын
Thanks for these simple tutorials, really got me into scripting!
@iiking32842 ай бұрын
Also here’s a very small reminder: Instead of saying coins = coins + 1 you can simply type coins += 1
@Pokeshek1Ай бұрын
Why does this work?
@qqqqty9404Ай бұрын
@@Pokeshek1+= I think it can be used as a shortcut for +1
@AxelMyGuy11 күн бұрын
@@qqqqty9404 coins+=1 is the same as coins = coins+1. So it repeats the coins
@pechugapelua77563 ай бұрын
Im actually proud of this one cant believe i did it by myself local db = false local function onTouch(otherPart) local player = game.Players:GetPlayerFromCharacter(otherPart.Parent) if player then local leaderstats = player:FindFirstChild("leaderstats") local coins = leaderstats:FindFirstChild("Coins") if coins and not db then db = true coins.Value = coins.Value + 1 script.Parent.CanTouch = false script.Parent.Transparency = .7 --I did this by myself!! LES GOOOOO task.wait(3) script.Parent.CanTouch = true script.Parent.Transparency = 0 db = false end end end script.Parent.Touched:Connect(onTouch)
@tochukwuagwuh49892 ай бұрын
what does this code do
@AdibBenzan2 ай бұрын
@@tochukwuagwuh4989 nothing ask chatgpt
@baconph2578Ай бұрын
oh i know how did this work first, if you touched a part you will add a coin from its leaderstats with debounce preventing the player to get too much money from just touching a part. second, it will make the part go transparent to opaque
@KingDumpling201314 күн бұрын
@tochukwuagwuh4989it add money to the stats of the player like adding coins if you young the part
@gabiluka4160Ай бұрын
Thanks man
@user-im3lx2bq1w9 күн бұрын
On the coins part it somehow doesn’t work, ive typed it in correctly 2 times and it still doesnt appear next to my user
@BastiRufi5 ай бұрын
Thank you i have learned so much from you. Now i can try and make my own game
@fredymredy26 күн бұрын
What if i want the playerstats to be only visible when a player only holds the Tab button, how can be made like that and also what about GUI?
@Thewall210 күн бұрын
Why can’t I make a stat that says how long you’ve been alive like in other games I’ve tried so many times and it never worked?
@md-hassan-gi3moАй бұрын
You can also write coins.Value += 1 instead of coins.Value = coins.Value + 1
@benz_ed1tzАй бұрын
Do you have to set a parent for the instance or can you keep the instance parent the default parent?
@paramore.editor5 ай бұрын
this series has helped out so much! i really appreciate the time and effort you’ve put into these videos, new subscriber!
@naminex44435 ай бұрын
W video
@Dr_buckett4 ай бұрын
I encountered something to where my code was constantly doublespaced while only taking up one line of code while i was trying to create a ranking system based off of the coins you had. Other than that do you know why i stat using a Stringvalue doesn't work (the code is basically the same as the coins instance code but with a string value and the value being a string)
@ENSANElolАй бұрын
You can use an if statement to check if player name = yourplayername then assign it to a value lets say string . value = "Developer" else string . value = "Player"
@ENSANElolАй бұрын
there might be and should be a better way to do this since if you change your name, this breaks. like using PlayerID or something which is unique and will never change.
@PowascalАй бұрын
local button = script.Parent button.Touched:Connect(function(otherpart) local human = otherpart.Parent:FindFirstChild("Humanoid") if human then local newPart = Instance.new("Part") newPart.Parent = game.Workspace.Button newPart.Size = Vector3.new(3, 3, 3) newPart.Position = Vector3.new(0, 3, 2) newPart.BrickColor = BrickColor.new("Sea green") newPart.Shape = Enum.PartType.Ball newPart.Mass = 0.001 end end) also if you know how to set a limit on how many new parts are made I would appreciate it
@soudeux8702Ай бұрын
u can add a variable (0) that increments everytime u touch it, the limit would probably be (if i < 10 then) so it would would limit to 10
@HD-fj7kd2 ай бұрын
i tried a bunch now its making the whole value and its in the folder its just not next to the player like shown
@MarZ677Ай бұрын
Ah finally, About to finish learning scripting then he says "advanced tutorial" AWH HELL NAW (i will watch it
@Beeknight-9094Ай бұрын
I legit these were like jump height or speed and stuff
@2inezine5 ай бұрын
i learn something new today ..
@M4NNY_1S_C00LАй бұрын
i dont have the player character in the workspace, is this outdated or is there a problem on my end?
@anshikatiwari19124 күн бұрын
Is it necessary to put leaderstats as variable?
@GoldenBredАй бұрын
What if he was called FreakDev and freaked all over the place
@sigma-n4f8dАй бұрын
I hope this is alright! local pet = math.random(1,4) if pet == 1 then print("you got a cat!") elseif pet == 2 then print("you got a dog!") elseif pet == 3 then print("you got a hamster!") elseif pet == 4 then print("you got a mouse!") end
@yumengwang3078Ай бұрын
hello everyone! I tried to make game of collecting coins, basically combining all I learn from the tutorials above, but I can't figure out why the coin always come up at the same place, not randomly. Could anyone help me?
@jiggy6814Ай бұрын
Idk I'm also new but there are cordinate in roblox studio so you could use the math.random script to make it appear at random ppaces
@CrimsonMoonVr1015 ай бұрын
Can u make a tutorial on if the player touches a block it will give you a certain amount of coins, such as 25-50
@stupidoBanana5 ай бұрын
i dont know how to make the player only touch button this is what i got make the part fly local part = game.Workspace.Part local coins = 0 part.Touched:Connect(function(player) print("1+ coin!") print(coins) coins = coins + 1 end)
@jakgutn4 ай бұрын
@@stupidoBanana you can add here the FindFirstChildWhichIsA("Humanoid") command to prevent generating the coins when some other part is already touching it
@reaklaz4 ай бұрын
@@stupidoBanana thats just you forgot to anchored it bro 😭 you didnt make it fly
@legendzaryj4 ай бұрын
Put this script inside of the part that you want to give coins on touch: local part = script.Parent local coins = 25 part.Touched:Connect(function(hit) local character = hit.Parent if character:FindFirstChild("Humanoid") then print(hit) local player = game.Players:GetPlayerFromCharacter(character) player.leaderstats.Coins.Value += coins part:Destroy() -- Only keep this if you want to destroy the part after collection. end end)
@shinichikudo852122 күн бұрын
@@legendzaryjwhy part instead of SSS?
@cookiepenguino4 ай бұрын
thanks for the guides! for this learning objective i did: game.Players.PlayerAdded:Connect(function(player) task.wait(1) local leaderstats = player:FindFirstChildOfClass("Folder") local coins = leaderstats:FindFirstChildOfClass("IntValue") local partIsTouched = false local tp = game.Workspace.touchPart local chat = game:GetService("TextChatService") tp.Touched:Connect(function(otherPart) if partIsTouched == false then partIsTouched = true chat:DisplayBubble(tp, "ouuchhh dont touch me that hurts") tp.Material = "Neon" tp.Color = Color3.new(1,0,0) task.wait(1) tp.Color = Color3.new(1,1,0) task.wait(1) tp.Color = Color3.new(0,1,0) task.wait(1) tp.Color = Color3.new(0,0,1) task.wait(1) tp.Material = "Plastic" coins.Value += 20 tp.BrickColor = BrickColor.new("Medium stone grey") task.wait(3) chat:DisplayBubble(tp, "waaiiitttt did you just,,, STEAL FROM ME... come BACK you DIRTY SCOUNDREL.") partIsTouched = false end end) end) the chat:DisplayBubble's broke after a while and i couldnt figure out why so sadly that doesnt really work :(
@reaklaz4 ай бұрын
you meant chat:DisplayBubble(tp, "ouuchhh dont touch me that hurts") by: Print("player, ",ouuchhh dont touch me that hurts") if that helps tell me i want to know
@Terratomere15 күн бұрын
@@reaklaz print puts it in the output
@HD-fj7kd2 ай бұрын
dude im trying to learn it and even copied it one to one it isnt working for me for some reason im gonna try some more times
@Thecardkid120 күн бұрын
i dont know why but the entire part of coins was not working for me and i copied the code exatly the same
@dawnscript118 күн бұрын
Yeah same
@SaahirSCJ3 ай бұрын
Roblox studio just automatically filled my code in for me
@thatkidyoyo2 ай бұрын
for some reason the first code shown does not work for me
@cosmicsleepyy3 ай бұрын
how do you make it so that it stops adding and resets on death
@Dragonball3D5 ай бұрын
i tried making a code where when it reachs 60 seconds it goes to 1 minute but when i made the code there isint a second or minute at all in the leaderboard the code is like them same how you did with the coins for seconds and then i have the minute code but instead of "while true do" i have "if Seconds.Value == 60 then Seconds.Value = 0 Minutes.Value = 1 how i would fix this code
@t8bx5 ай бұрын
This code may help you, let me know if you encounter any issues. (Put this at the bottom of your code, after you create your instances.) while true do task.wait(1) Seconds.Value = Seconds.Value + 1 if Seconds.Value == 60 then Seconds.Value = 0 Minutes.Value += 1 task.wait(0.1) end end end)
@LowKeyMoment5 ай бұрын
just use chatgpt if you dont inow why it wont eork
@oogabungabanana5 ай бұрын
@@t8bxyep
@UpgradedTitanDripBaconYT_Alt9 күн бұрын
i made a time Leader stat :D
@fujiwaranonekobiodrando12574 ай бұрын
😭Is it possible to read that stat in other scripts?
@The_BassWood_Who_Cried_Pancake3 ай бұрын
I've been trying but it keeps saying that it can't find the leaderstats folder
@fujiwaranonekobiodrando12573 ай бұрын
@@The_BassWood_Who_Cried_Pancake well the leaderstats folder only is created after the script ran so you might need to use wait for child or something?
@The_BassWood_Who_Cried_Pancake3 ай бұрын
@@fujiwaranonekobiodrando1257 I used both wait for child and find first child it didnt work with either one
@The_BassWood_Who_Cried_Pancake3 ай бұрын
Actually, in the Final Episode, he does make something like that so I would reccomend looking at that
@fujiwaranonekobiodrando12573 ай бұрын
@@The_BassWood_Who_Cried_Pancake AWESOME
@Blankeyn3 ай бұрын
Yo im almost there wish me luck
@bennettpearson78273 ай бұрын
Anyone know how to remove leaderstats from leaderboard and when i try to change it doesn't work and it follows every new game i make pls help im begging you brawl dev read this
@lucckkkyyyy2 ай бұрын
ok so go to your leaderstats folder inside of your character and delete it, if you cant find this make a script inside of the workspace and type this. game.Players.PlayerAdded:Connect(function(player) local leaderstats = player.FindFirstChild("leaderstats") leaderstats:Destroy() end) This will delete any instance inside your player that is named "leaderstats" you will have to make this script in every game you make but this is only if you cant delete your leaderstats folder!
@bobuxcartel40513 ай бұрын
game.Players.PlayerAdded:Connect(function(player) local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = player local playtime = Instance.new("IntValue") local current_time = tick() playtime.Name = "Play Time" playtime.Parent = leaderstats while true do playtime.Value = tick() - current_time wait(1) end end)
@lord82074 ай бұрын
I failed my asssigment, unfortunately I couldnt come with anything because I didnt know how to come up with it-
@OTAKUFLIX4813 ай бұрын
can someone help me i wrote the same code as brawldev but it did not worked
@AkaSam83 ай бұрын
nothing will happen and i new part wont show in the workspace
@Ishy-n1z4 ай бұрын
tbh cht ik tis random but i was deving a game based of sekiro and has 26 hours of gameplay sadly today i quit game devolpemnt due to being a one man team
@osakadev5 ай бұрын
W
@aidandoesanimations2 ай бұрын
did roblox update the scripting cuz this isnt working for me. EDIT: it works now
@VectoorX5 ай бұрын
Probably not the best idea to put a unwrapped While Loop inside the Player Added event 😅
@CriticalWow5 ай бұрын
the script isnt working for me
@reaklaz4 ай бұрын
maybe you just made it wrong the computer almost always right so you made a mistake
@CriticalWow4 ай бұрын
@@reaklaz nah
@CriticalWow4 ай бұрын
@@reaklaz i know now
@CriticalWow4 ай бұрын
@@reaklaz its just i didnt fix my script
@reaklaz4 ай бұрын
@@CriticalWow ok
@robo2985 ай бұрын
Why is it not working for me 😭
@reaklaz4 ай бұрын
maybe you just made it wrong the computer almost always right so you made a mistake (im too lazy to make a reply so i just copy the reply i sent to the person on top of u)
@ArchieRS5 ай бұрын
2 views in 1 minute is CRAZY
@osakadev5 ай бұрын
no scuffed simulator?
@maxymusgamer99005 ай бұрын
hi mr scuffed owner
@anshikatiwari19127 күн бұрын
Code not working '
@donovanklАй бұрын
print("hello world")
@kaledoublescope4 ай бұрын
Why can’t this just be in the game?
@RobloxBaconator2 ай бұрын
Isn't it obvious? Not all games are the same so some want to have coins in the leaderboard, some want to have gems, some want to have a made-up currency or even something like time or speed
@KSSdude2 ай бұрын
hey brawldev I really like your vids and I am looking forward to learn from you in real time rather than videos. I wish we both can create a game on day
@fishywithglasses4 ай бұрын
w h y d o i n o t s e m y s c r i p t
@tjmstudios-l1j5 күн бұрын
I CANT
@JayBoiKobe5 ай бұрын
First
@lucaz78632 ай бұрын
0:00 first
@Cannonplaylol3 ай бұрын
i made a time leaderstat lol (its bassically the same thing except the name is time instead of coins) game.Players.PlayerAdded:Connect(function(player) local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = player local coins = Instance.new("IntValue") coins.Name = "Time" coins.Value = 0 coins.Parent = leaderstats while true do task.wait(1) coins.Value = coins.Value + 1 end end)
@MetaSkills1785 ай бұрын
bruh i think that it was smth else
@meenaboss14333 ай бұрын
Somone teach me i can pay with robux
@Your-Average-KDE-Lover5 ай бұрын
32 views in 15 mins bro fell off
@spiniks8934 ай бұрын
He does usefull tutorials
@giselacandelario684 ай бұрын
Yt comment section is done at this point
@UserBananaIDK4 ай бұрын
Bro he has only 11k subs like bro?
@AkaSwvy3 ай бұрын
Bro this fell off meme is so bad
@podpisicgnamenya3 ай бұрын
14 likes in 2 months bro fell off
@mystikewl_Ай бұрын
i made a gambling machine with the math.random and the currency brawldev, did i make you proud?
@TwiistedPlayzz5 ай бұрын
My Script, +1 speed every second game.Players.PlayerAdded:Connect(function(player) local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = player local Speed = Instance.new("IntValue") Speed.Name = "Speed" Speed.Value = 0 Speed.Parent = leaderstats while true do wait(1) Speed.Value = Speed.Value + 1 player.CharacterAdded:Connect(function(character) local humanoid = character:WaitForChild("Humanoid") humanoid.WalkSpeed = 0 while true do wait(1) humanoid.WalkSpeed = Speed.Value end end) end end)
@ScriptHeavens5 ай бұрын
game.Players.PlayerAdded:Connect(function(player) local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = player local timeplayed = Instance.new("IntValue") timeplayed.Name = "Time Played" timeplayed.Value = 0 timeplayed.Parent = leaderstats while true do wait(1) timeplayed.Value = timeplayed.Value + 1 end end)
@PODATO_DEVICE_USER3 ай бұрын
game.Players.PlayerAdded:Connect(function(player) local Leaderstats = Instance.new("Folder") Leaderstats.Name = "leaderstats" Leaderstats.Parent = player local Scripts = Instance.new("IntValue") Scripts.Name = "Scripts" Scripts.Parent = Leaderstats end)
@juju234144 ай бұрын
local ts = game:GetService("TweenService") local tt = 1.0 local ti = TweenInfo.new(tt,Enum.EasingStyle.Linear) while task.wait(tt) do local r = math.random(0,255) local b = math.random(0,255) local g = math.random(0,255) ts:Create(script.Parent,ti,{Color = Color3.fromRGB(r,b,g)}):Play() end
@Snow-mw5jm3 ай бұрын
part = script.Parent local debounce = false part.Touched:Connect(function(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player then if debounce == false then debounce = true player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 1 task.wait(0.5) debounce = false end end end)
@GeeEhs5 ай бұрын
local block = game.Workspace.Block local playerHasTouched = false block.BrickColor = BrickColor.new("Lime green") block.Material = "Neon" game.Players.PlayerAdded:Connect(function(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 block.Touched:Connect(function(otherPart) if playerHasTouched == false then playerHasTouched = true block.BrickColor = BrickColor.new("Really red") coins.Value = coins.Value + 1 print(player, "has gained a coin!") task.wait(1) playerHasTouched = false block.BrickColor = BrickColor.new("Lime green") end end) end)
@chalmcal5 ай бұрын
(made a better version of the script I made for the last episode, altough one problem I have with the script is that multiple body parts touch the brick the points shoot up like crazy without the wait instances activating for some reason) local gun = math.random(1, 6) local gamer = script.Parent local snake = gamer:FindFirstChild("water") local spin = gamer:FindFirstChild("spin") game.Players.PlayerAdded:Connect(function(player) local LeaderStats = Instance.new("Folder") LeaderStats.Name = "leaderstats" LeaderStats.Parent = player local TimesFired = Instance.new("IntValue") TimesFired.Name = "Times fired" TimesFired.Value = 0 TimesFired.Parent = LeaderStats local Coward = Instance.new("IntValue") Coward.Name = "Coward Value" Coward.Value = 0 Coward.Parent = LeaderStats snake.Touched:Connect(function(otherpart) local humanoid = otherpart.Parent:FindFirstChild("Humanoid") if humanoid then TimesFired.Value = TimesFired.Value + 1 if gun == 1 then humanoid.Health = 0 else print("you lived") gun = gun - 1 task.wait(5) end else task.wait(5) end end) spin.Touched:Connect(function(otherpart) local humanoid = otherpart.Parent:FindFirstChild("Humanoid") if humanoid then gun = math.random(1, 6) print("coward") Coward.Value = Coward.Value + 1 task.wait(5) end end) end)
@ziekmanny5 ай бұрын
game.Players.PlayerAdded:Connect(function(player) local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" -- if it isnt written exactly like this it wont work leaderstats.Parent = player local exhale = Instance.new("StringValue") exhale.Name = "Exhale" local breathin = false exhale.Value = "Breathing In" exhale.Parent = leaderstats while true do task.wait(1) if breathin == false then exhale.Value = "Exhaling" breathin = true elseif breathin == true then exhale.Value = "Inhaling" breathin = false end end end)
@aeboistudio43685 ай бұрын
game.Players.PlayerAdded:Connect(function(player) local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = player local exp = Instance.new("IntValue") exp.Name = "exp" exp.Value = 0 exp.Parent = leaderstats while true do local random = math.random(1, 100) local baseplate = game.Workspace.Baseplate print(random) if random < 1 then print("1%") baseplate.BrickColor = BrickColor.new("Gold") exp.Value = exp.Value + 100 elseif random < 30 then baseplate.BrickColor = BrickColor.new("Silver") print("30%") exp.Value = exp.Value + 50 elseif random < 100 then baseplate.BrickColor = BrickColor.new("Bronze") print("70%") exp.Value = exp.Value + 10 end wait(1) end end)
@Tyger-Games3 ай бұрын
How Many Secends Played Script! -- put this all in a script game.Players.PlayerAdded:Connect(function(player) local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = player local secends = Instance.new("IntValue") secends.Name = "PlayTime" -- change PlayTime To What You Want The LeaderBoard Value To Be called secends.Value = 0 secends.Parent = leaderstats while true do wait(1) secends.Value = secends.Value + 1 end end)
@NOTGHOSTONSTEAM5 ай бұрын
game.Players.PlayerAdded:Connect(function(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 local resetCoins = game.Workspace.KillBrick resetCoins.Touched:Connect(function(otherPart) local coins = coins if coins then coins.Value = 0 end end) while true do task.wait(1) coins.Value = coins.Value + 1 end end) I AM SO HAPPY THIS WORKED I USED THE KILLBLOCK FROM LAST EPISODE TO MAKE IT RESET COINSSSSS
@arcticpandaros5705 ай бұрын
game.Players.PlayerAdded:Connect(function(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 local String = Instance.new("StringValue") String.Name = "Class" String.Value = "Warrior" String.Parent = leaderstats while true do task.wait(1) coins.Value = coins.Value + 1 end end)
@sammyawad49334 ай бұрын
i call it america game.Players.PlayerAdded:Connect(function(player) local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = player local coinss = Instance.new("IntValue") coinss.Name = "guns" coinss.Value = 0 coinss.Parent = leaderstats local coins = Instance.new("IntValue") coins.Name = "alcohol" coins.Value = 0 coins.Parent = leaderstats while true do task.wait(0) coins.Value = coins.Value + 99999999 * 9999999 coinss.Value = coinss.Value + 99999999 * 99999999 end end)