Tools - Roblox Advanced Scripting #3

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ม.ค. 2025

ความคิดเห็น • 166

  • @BrawlDevRBLX
    @BrawlDevRBLX  8 หลายเดือนก่อน +7

    🟢MAKE SURE YOU WATCH MY BEGINNERS SCRIPTING SERIES FIRST BEFORE THIS ONE!
    th-cam.com/play/PLQ1Qd31Hmi3W_CGDzYOp7enyHlOuO3MtC.html&si=6lWPfrILGGq1GLlW

  • @SophiaNhya
    @SophiaNhya ปีที่แล้ว +59

    Woah, your channel is one of the only ones that actually teaches you something useful and in a cool way!

    • @BrawlDevRBLX
      @BrawlDevRBLX  ปีที่แล้ว +11

      Happy to hear that!

    • @silinicityYT
      @silinicityYT 8 วันที่ผ่านมา

      @@BrawlDevRBLX fr

  • @noooonotko6bxl
    @noooonotko6bxl 8 หลายเดือนก่อน +47

    another workaround for finding the player is simply doing this:
    local player = game.Players:FindFirstChild(tostring(tool.Parent))
    When a player is holding the tool, the tool's parent is the player in Workspace, so it takes that, turns it into a string, and finds it in game.Players.
    great tutorial BTW

    • @lusaxcvq
      @lusaxcvq 6 หลายเดือนก่อน +1

      Smart 😮

    • @WitherForge
      @WitherForge 6 หลายเดือนก่อน +2

      to string doesnt work you need to do tool.Parent.Name

    • @rewersjtr
      @rewersjtr 5 หลายเดือนก่อน +1

      You can just do local player =tool.Parent.Parent

    • @fandedeto4603
      @fandedeto4603 4 หลายเดือนก่อน

      skibidi toilet

    • @innocuous526
      @innocuous526 4 หลายเดือนก่อน

      awesome comment it worked perfectly! To anyone having a mistake make sure you're not doing game.Workspace

  • @Despicablehim530
    @Despicablehim530 ปีที่แล้ว +8

    Thanks for making this series, you’re the only one that posted an advanced series that’s not outdated!

    • @silinicityYT
      @silinicityYT 8 วันที่ผ่านมา

      thank you so much bro

  • @wastingtimejustwaiting
    @wastingtimejustwaiting 13 วันที่ผ่านมา +3

    that feeling when you understand eveyrthing brawl dev says in the challenge, i was rlly lost but god damn i caught up and im proud!!

  • @Xmosity
    @Xmosity 7 หลายเดือนก่อน +7

    dude your deadass the best tutorial maker ive ever watched, i went through like half your series and as of now im just applying what ive learned to my games and i cant express enough how much my scripting has changed because fo you, not one other tutorial has worked please keep making these

  • @Whatyoi
    @Whatyoi 10 หลายเดือนก่อน +15

    ANOTHER BANGER🥶🥶🥶

  • @vengefuul5413
    @vengefuul5413 5 หลายเดือนก่อน +7

    being able to complete the challenge on my own felt soooo good. Thanks for the great tutorials so far.

    • @coolkid7377
      @coolkid7377 4 หลายเดือนก่อน

      even I couldnt do it on my own the first time and im watching this entire series for the second time lmao. Nice bro

  • @ItsVegaSama
    @ItsVegaSama 10 หลายเดือนก่อน +4

    Super underrated series and TH-camr. This series is helping me further my knowledge a lot.

  • @flapjackwastaken8500
    @flapjackwastaken8500 20 วันที่ผ่านมา +1

    These tutorials are awesome so far!
    I've wanted to get into scripting for a while now but never had the time to start. And now I'm on school holidays so I have time!
    I also did the challenge. I was a bit stuck and got a little help from your script. But yeah here it is!
    local tool = script.Parent
    local handle = tool.Handle
    local IsHolding = false
    local Sound1 = script.Equip
    local Sound2 = script.Unequip
    tool.Equipped:Connect(function()
    print("Tool has been equipped")
    Sound1:Play()
    end)
    tool.Unequipped:Connect(function()
    print("Tool has been unequipped")
    IsHolding = false
    tool:ScaleTo(1)
    Sound2:Play()
    end)
    tool.Activated:Connect(function()
    print("Tool has been activated")
    IsHolding = true
    tool:ScaleTo(1.8)


    while IsHolding do
    task.wait(0.1)
    local r = math.random(0, 255)
    local g = math.random(0, 255)
    local b = math.random(0, 255)
    handle.Color = Color3.new(r, g, b)
    game.Players:FindFirstChild("BelugaLOLXDYT").leaderstats.Clicks.Value += 1
    end
    end)
    tool.Deactivated:Connect(function()
    print("Tool has been deactivated")
    IsHolding = false
    tool:ScaleTo(1)
    while IsHolding == false do
    task.wait(0.1)
    handle.BrickColor = BrickColor.new("Medium stone grey")
    end
    end)

  • @OSoloman
    @OSoloman ปีที่แล้ว +6

    Thanks for the amazing tutorial, it helped me a lot!

  • @bobSupprtsUSSR
    @bobSupprtsUSSR 3 ชั่วโมงที่ผ่านมา

    i never thought i would learn scripting so fast like this, thx for the incredible tutorials

  • @dulipa8727
    @dulipa8727 5 หลายเดือนก่อน +5

    hey thanks for stopping by

  • @ryleyw3684
    @ryleyw3684 8 หลายเดือนก่อน +4

    Only 3 videos into this playlist, watching these even with out following along, it's quite easier to understand them some others.
    I only know badics and cannot really do my own scripts other then simple part propertie changes and a touched.
    Even though ive watched and followed along a few different series over the last few years. I don't do enough.
    These videos are explained so well, thank you for going more in depth in a sense.

  • @langee
    @langee ปีที่แล้ว +47

    Can you please make a video about laying good groundworks. Usually my games turn into a million scripts with a trillion if statements.

  • @chickenoodle3397
    @chickenoodle3397 18 วันที่ผ่านมา +1

    Probably the best tutorial for tools on TH-cam

  • @darned926
    @darned926 9 หลายเดือนก่อน +2

    I love your videos!
    You somehow can make me understand Roblox scripting! I say this because I have never programmed in my life (like in any prog. language).
    Thanks again for these tutorials!

  • @EXCLUSIVELY_JAH
    @EXCLUSIVELY_JAH 21 วันที่ผ่านมา

    Most enjoyable video in the series so far, it was easy to understand and REALLY useful 😮

  • @lamy1057
    @lamy1057 10 หลายเดือนก่อน +3

    You could use the manual activation for a anvil and a hammer. If you press on the anvil the tool will activate and it will do something.

  • @Username8281
    @Username8281 3 หลายเดือนก่อน +1

    Question, in an RPG, let's say for example that you will have tens of different weapons. which of these is better/most optimal. Keep in mind that this RPG game would also have a trading system, so these weapons/items would be tradeable between players
    1) create each weapon as a "Part" with their own textures, etc
    2) create each weapon as a "Handle", and these handles would have their own texture, etc.

  • @TheFlyFella003
    @TheFlyFella003 ปีที่แล้ว +1

    I love your channel so far! Please continue! Thanks for the amazing tutorials! 🎉

  • @N_MoreCurious
    @N_MoreCurious หลายเดือนก่อน +1

    Yes indeed your tutorials are VERY helpful!

  • @zerothree12
    @zerothree12 7 หลายเดือนก่อน

    This is the best tutorials. I was able to make all 7 challenges in the other video + the bonus one and I also made that challenge about tools. I am so happy! TYSM.

  • @Zarpulsion
    @Zarpulsion 5 หลายเดือนก่อน

    very informative video and i love the challenges or tasks you give at the end really helps to fully engage and get hands on with what ive been taught this challenge was especially fun to do looking forward to your other videos!

  • @WhoLetsBludCook
    @WhoLetsBludCook 2 หลายเดือนก่อน +1

    Extremely helpful tutorial!!!

  • @devandyEsp
    @devandyEsp 8 หลายเดือนก่อน +1

    We really appreciate your lessons; your efforts will be rewarded.

  • @M.e.h..
    @M.e.h.. 2 หลายเดือนก่อน

    damn this challenge thing is really helpful, it gives us an idea on how to implement the stuff we're learning

  • @MrZinvixYT
    @MrZinvixYT 5 หลายเดือนก่อน +1

    I used to change tutorials but yours are the best :D.

  • @banana-io8vw
    @banana-io8vw หลายเดือนก่อน

    thank you brawldev you make this whole thing so achievable feeling

  • @LeProffeseurFOU
    @LeProffeseurFOU ปีที่แล้ว

    the day i needed a tutorial, i get it and its GOOOOD :)

  • @s.c.panims4167
    @s.c.panims4167 2 หลายเดือนก่อน

    you helped me alot of the tools tuto episode thanks :D

  • @Roadbobek
    @Roadbobek หลายเดือนก่อน

    Quick workaround, it should work when another player picks the tool up since it re-defines the variable on the Equipped event.
    tool.Equipped:Connect(function()
    plrName = script.Parent.Parent
    end)
    tool.Activated:Connect(function()
    game.Players:WaitForChild(plrName.Name).leaderstats.Clicks.Value += 1
    end)

  • @luzcz3k
    @luzcz3k 9 หลายเดือนก่อน +1

    I learned baiscs with rodev and you feel like a cool continuation of my scripting career! It helps me SM ty!!!

  • @Gachims
    @Gachims 2 หลายเดือนก่อน

    we need more people like BrawlDev

  • @neogamer123
    @neogamer123 5 หลายเดือนก่อน

    Wow! This video is awesome. Your explanations are clear and you lay really good groundwork.
    Please keep making these tutorials.

  • @someonetoldmetochangemyname
    @someonetoldmetochangemyname 16 วันที่ผ่านมา

    When i made a part called “Handle” and put it in the tool it worked, but when i used a model that i made in like 10 minutes and named it “Handle”, it just broke. It stayed in the place I made it in Roblox Studio and it was invisible. When i equipped the tool it made it visible again, and since it was not anchored every component just rolled arond

  • @speedyg2295
    @speedyg2295 6 หลายเดือนก่อน

    Great Video!!

  • @MrNova.1
    @MrNova.1 3 วันที่ผ่านมา +1

    I got the first 2 out of 5 lol but now I understand it way more

  • @slycxi
    @slycxi 3 หลายเดือนก่อน +2

    to find the leaderstats is posible. just put this script inside the activate function. make you have your leaderstats folder and clicks folder correct. local player = players:GetPlayerFromCharacter(tool.Parent)
    if player then
    local leadstats = player:FindFirstChild("leaderstats")
    if leadstats then
    local clicks = leadstats:FindFirstChild("clicks")
    if clicks then
    while isHolding do
    task.wait(WAIT_TIME)
    clicks.Value = clicks.Value + 1
    tool.Handle.Color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
    shootSound:Play()
    end
    end
    end
    end

  • @wastingtimejustwaiting
    @wastingtimejustwaiting 13 วันที่ผ่านมา

    I hope you include challenges like this at the end of every video

  • @ۥٴٴۥۥٴٴۥ
    @ۥٴٴۥۥٴٴۥ ปีที่แล้ว +1

    another way to get the player holding the tool from the server would be a line like this
    script.Parent:FindFirstAncestorWhichIsA("Player")

  • @AmitGozlan
    @AmitGozlan ปีที่แล้ว +1

    i have a question
    how do i make the block luanch forwards and damage whatever player it touches?
    im thinking i chuld make this a skill can you make a vidoe about it? how to make something luanch and then damage like a gun?

  • @bacon6063
    @bacon6063 3 หลายเดือนก่อน +1

    here's my script!
    I'm really happy with how it turned out, learning how to make things happen when tools are activated, deactivated, etc. I'm also very happy I know how to import sounds from the toolbox, and I'm gonna do devious things with my friends using that. Thanks!
    local tool = script.Parent
    local toolDown = false
    local clicks = game.Players.LocalPlayer:WaitForChild("leaderstats"):FindFirstChild("Clicks")
    local handle = tool:FindFirstChild("Handle")
    local jumpscare = tool["Granny: Jumpscare (Game Over)"]
    local excitingSound = tool["Shadow Lands Sting"]
    tool.Equipped:Connect(function()
    jumpscare:Play()
    end)
    tool.Activated:Connect(function()
    print(clicks.Value)
    clicks.Value += 1
    handle.Size = Vector3.new(clicks.Value, clicks.Value, clicks.Value)
    toolDown = true
    end)
    tool.Deactivated:Connect(function()
    toolDown = false
    end)
    while true do
    print("Player holding down the tool is", toolDown)
    local randomColor1 = math.random(0, 255)
    local randomColor2 = math.random(0, 255)
    local randomColor3 = math.random(0, 255)
    handle.Color = Color3.fromRGB(randomColor1, randomColor2, randomColor3)
    if handle.Color == Color3.fromRGB(69, 69, 69) then
    excitingSound:Play()
    end
    task.wait(1)
    end

    • @bacon6063
      @bacon6063 3 หลายเดือนก่อน

      this was also done on a local script, so findfirstchild and waitforchild work

  • @fredystrommer6476
    @fredystrommer6476 25 วันที่ผ่านมา +3

    BRO U NEED TO ACTIVATE WINDOWS

  • @BrawlDevRBLX
    @BrawlDevRBLX  7 หลายเดือนก่อน +2

    🎁Get Access to my Scripts + More Perks by Becoming a Channel Member! 👇
    www.youtube.com/@BrawlDevRBLX/join

    • @UsTube.
      @UsTube. 7 หลายเดือนก่อน

      That’s cool

    • @NotChinese
      @NotChinese 7 หลายเดือนก่อน

      you forgot to pin it

  • @firejustice5076
    @firejustice5076 4 หลายเดือนก่อน

    guys make sure to lift the "Handle" up from the ground a little bit before adding it to the Tool inside of the StarterPack.

    • @eza3850
      @eza3850 หลายเดือนก่อน +1

      thanks random guy, ive been having a mental breakdown for the last 2 days trying to figure out handle

  • @domakrsnah1612
    @domakrsnah1612 หลายเดือนก่อน

    i swear that i couldn't learn how to script perfectly from any youtuber exept you

  • @minhtuan8573
    @minhtuan8573 7 หลายเดือนก่อน +1

    heyy, I was struggling with the changing color challenge, cuz when i hold my button, the Handle part doesn't changing color, when i used your code, it doesn't work either. Why? Can you explain it please

  • @thatrobloxtryhard2458
    @thatrobloxtryhard2458 11 หลายเดือนก่อน +1

    My g u gotta activate windows!!! Fr though great tutorial and helpful for a noob dev like me.

  • @sannin4569
    @sannin4569 5 หลายเดือนก่อน

    bro that fifth challenge requirement had me fussing and then I caved and watched just for you to say to hard code it lmfaoo I'm like there's no actual way to grab that leaderstats value because there's no parameter for activating a tool that gives the player or character in any capacity.. needless to say im gunning for that remote event vid

  • @Ahmad20085
    @Ahmad20085 4 วันที่ผ่านมา

    ngl was doing this yesterday and i got really frustrated, just came back today and it was soo easy

  • @Sn0wyk
    @Sn0wyk หลายเดือนก่อน

    Hey, do you know how to make tool that clones a model from server storage on click and places it in front of the player in roblox studio with cooldown of 20 seconds and also the models lifetime is 15 seconds?

  • @MelikeyDuolingo-i2z
    @MelikeyDuolingo-i2z วันที่ผ่านมา

    lol spent like 30 minutes tryna figure out how to not hardcode the clicks before watching challenge explanation

  • @bazerduck1234
    @bazerduck1234 5 หลายเดือนก่อน

    i was able to do everytg except for the sound on my own. i even made it so that the block goes through different num values one by one , (1 , 2 , 3 , 4 , 4.5 , 5) , and changes color based on the redness, (the redness level increasing). all thx to u im able to do this! thx a lot!

  • @oliveirapy
    @oliveirapy 2 วันที่ผ่านมา +1

    Please don't change the leaderstats value only to your character like you did, that is going to make new scripters do it wrongly

  • @Smoot_jordan
    @Smoot_jordan ชั่วโมงที่ผ่านมา

    Tht canBeDropped reminded me of all the one piece Roblox games😂

  • @Teil
    @Teil 15 วันที่ผ่านมา

    I WAS TRYING FOR SO LONG HOW TO ADD CLICKS VARIABLE TO THE TOOL SCRIPT brooo and you ended up doing the simple workaround referring to specific player which I didnt wnna do 😭

    • @Thewall2
      @Thewall2 10 วันที่ผ่านมา

      Use getplayerfromcharacter
      To use it make a variable in activated that says the parent of the tool and since it’s part of your playermodel it’s gonna say “your username”
      And then use the getplayerfromcharacter and in () put the variable name and then you can go to clicks and do the thing where you add the click

    • @Thewall2
      @Thewall2 10 วันที่ผ่านมา

      I hope my reply helped you

  • @LushPop
    @LushPop 7 หลายเดือนก่อน

    Another banger

  • @SamiulAlam-ql4yz
    @SamiulAlam-ql4yz 3 หลายเดือนก่อน

    i have a problem that , i cant change the color of a tool thats handle is union

  • @IAmMuFufuLoveJesusChristYipee
    @IAmMuFufuLoveJesusChristYipee 6 หลายเดือนก่อน

    question..
    when I equip the tool. I get teleported to the tool which is on the ground when I created it and not the tool being in my hand.. why is this? :< Anchor is off too

  • @EASbrwolf
    @EASbrwolf 7 วันที่ผ่านมา

    what plugins do you use?

  • @Germancrashout
    @Germancrashout 2 หลายเดือนก่อน

    Whenever I equip the part my character is stuck and anchor is off

  • @Tojivon
    @Tojivon 6 หลายเดือนก่อน +1

    Issue: Everything works fine, but when I try to use tool.Activated:Connect(function(), it just doesn't work. Help?

    • @Tojivon
      @Tojivon 6 หลายเดือนก่อน

      Update: I just clicked "New" and copied everything into a new Place and it works. So confused right now.

    • @Tojivon
      @Tojivon 6 หลายเดือนก่อน

      After doing some looking around, nothing seems out of place. I copied everything from the new Place back into the old project (even tho they're literally identical) and it seems to still not work. The scripts only fully function once I copy everything into a new Place. Weird bug.

    • @dawnh
      @dawnh 5 หลายเดือนก่อน

      are you sure you didn't enable ManualActivation for the tool

  • @Goldenroblox1
    @Goldenroblox1 4 หลายเดือนก่อน

    its not working the leaderstats and the music one and the colour and clicks not working help

  • @user-engine24
    @user-engine24 ปีที่แล้ว

    Can you explain Why I hold the tool, It's on the ground not in my hand?

    • @BrawlDevRBLX
      @BrawlDevRBLX  ปีที่แล้ว +2

      The tool's handle may be anchored, make sure it isn't

    • @user-engine24
      @user-engine24 ปีที่แล้ว

      @@BrawlDevRBLX thank you for answer, but Is the name related with tool?, because I changed part name into handle,and It actually worked.

    • @neatery880
      @neatery880 8 หลายเดือนก่อน

      ​@@user-engine24yeah, only works if the handle is named Handle

  • @Cruelity920
    @Cruelity920 2 หลายเดือนก่อน

    My script was normal and I believe it could be made better, if yes please tell me how:
    local tool = script.Parent
    local plr = tool.Parent.Parent
    local sound = tool.Sound
    local handle = tool.Handle
    local check = false
    tool.Equipped:Connect(function()
    sound:Play()
    end)
    tool.Activated:Connect(function()
    check = true
    tool:ScaleTo(2)
    plr.leaderstats.Clicks.Value += 1
    while check == true do
    handle.Color = Color3.fromRGB(math.random(0,255), math.random(0,255), math.random(0,255))
    wait(1)
    end
    end)
    tool.Deactivated:Connect(function()
    tool:ScaleTo(1)
    check = false
    end)
    tool.Unequipped:Connect(function()
    sound:Stop()
    end)

  • @arwindelossantos3890
    @arwindelossantos3890 6 หลายเดือนก่อน

    I don't fully understand the part where I want to make certain items/tools exclusive to me or people, how do I do this in script form? It worked when I tried the client/server side like in the video but how do I implement this :>

    • @Cateatschips
      @Cateatschips 5 หลายเดือนก่อน

      all I did was delete the weld for the part and it worked.

  • @aibogstanley3056
    @aibogstanley3056 2 หลายเดือนก่อน

    can you tell me why my parts are not saving?

  • @Teil
    @Teil 13 วันที่ผ่านมา

    "Allright, lets think about this for a minute!" 🤓☝

  • @youneszaid-l2o
    @youneszaid-l2o 12 วันที่ผ่านมา

    hey brawldev i love your chanle but nothing i do works i copy what you do and still get nothing

  • @enriqueperez5726
    @enriqueperez5726 ปีที่แล้ว +1

    Hello! My name is Enrique. A pleasure. I have seen your videos and I am extremely delighted with them. I would like to know if you would like to work on developing an experience that is almost ready; What it really lacks is someone to bring it to life with the codes. If interested, let me know! I will be happy to give you more details. Many successes!

  • @BlueTheCrew
    @BlueTheCrew 4 หลายเดือนก่อน +2

    leaderstats:
    game.Players.PlayerAdded:Connect(function(player)
    local leaderstats = Instance.new("Folder", player)
    leaderstats.Name = "leaderstats"

    local Clicks = Instance.new("IntValue", leaderstats)

    Clicks.Name = "Clicks"
    Clicks.Value = 0
    end)
    Main:
    local IsActivated = false
    script.Parent.Activated:Connect(function()
    local player = game.Players:GetPlayerFromCharacter(script.Parent.Parent)

    script.Parent:ScaleTo(0.75)
    player.leaderstats.Clicks.Value += 1
    IsActivated = true

    while true do
    if IsActivated == true then
    local R = math.random(1, 255)
    local G = math.random(1, 255)
    local B = math.random(1, 255)
    script.Parent.Handle.Color = Color3.new(R, G, B)
    task.wait(0.2)
    script.Parent.Deactivated:Connect(function()
    script.Parent:ScaleTo(1)
    IsActivated = false
    script.Parent.Handle.BrickColor = BrickColor.new("medium stone grey")
    end)
    else
    break
    end
    end
    end)

  • @peraespacial1666
    @peraespacial1666 9 วันที่ผ่านมา

    the challenge
    local tool = script.Parent
    local handle = tool.Handle
    local equipped = false
    function mudarcor()
    while equipped do
    handle.Color = Color3.new(
    math.random(),
    math.random(),
    math.random()
    )
    wait(0.2)
    end
    end
    tool.Equipped:Connect(function(player)
    equipped = true
    mudarcor()
    end)
    tool.Unequipped:Connect(function()
    equipped = false
    end)

  • @bobthebuilder-do1rt
    @bobthebuilder-do1rt 3 หลายเดือนก่อน

    Is it okay if i dont do the challenge

  • @euloveplayz6102
    @euloveplayz6102 27 วันที่ผ่านมา

    I made it where the longer you hold the more points you get and the bigger the pipe gets, Also put a bonk sound when deactivated.
    Thank you verymuch BrawlDev!!
    local pipe = script.Parent
    local pipeScale = 0.5
    local isHeld = false
    pipe.Equipped:Connect(function()
    pipe.Equip:Play()
    end)
    pipe.Activated:Connect(function()
    isHeld = true
    pipe.Bigging:Play()
    while isHeld do
    pipe:ScaleTo(pipeScale + 0.001)
    pipeScale = pipeScale + 0.001
    local RandomizedColor = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
    pipe.Handle.Color = RandomizedColor
    pipe.Handle.Head.Color = RandomizedColor
    task.wait()
    end
    end)
    pipe.Deactivated:Connect(function()
    game.Players:FindFirstChild("EULOVExPLAYZ").leaderstats.Hits.Value += pipeScale
    isHeld = false
    pipe.Bigging:Pause()
    pipe.Bonk:Play()
    pipeScale = 0.5
    pipe:ScaleTo(0.5)
    end)

  • @Appolo-dw7hi
    @Appolo-dw7hi 7 หลายเดือนก่อน

    Thanks i learnt now

  • @1ce_c0ld_paw5
    @1ce_c0ld_paw5 24 วันที่ผ่านมา

    13:47 I acutally found a way to change the color when activating it!
    tool.Activated:Connect(function()
    local handle = tool:FindFirstChild("Handle")
    handle.BrickColor = BrickColor.new("Really red")
    end)
    tool.Deactivated:Connect(function()
    local handle = tool:FindFirstChild("Handle")
    handle.BrickColor = BrickColor.new("Medium stone grey")
    end)

  • @Magicz.
    @Magicz. ปีที่แล้ว

    Helpful video, could you also make one about the :Connect the the other : Events or whatever it is. I dont really understand that

    • @BrawlDevRBLX
      @BrawlDevRBLX  ปีที่แล้ว

      Check out my beginners scripting playlist, I should have an episode covering that!

  • @Gyfou
    @Gyfou 5 หลายเดือนก่อน

    Nice tutorial ! and i was wondering why i can't use GetPlayerFromCharacter to get the player

  • @Me-md5vq
    @Me-md5vq 3 หลายเดือนก่อน

    I got a error because leaderstats backpacks is nil somebody help

  • @wilsonybiernasiii7287
    @wilsonybiernasiii7287 4 หลายเดือนก่อน

    i need a lot of scripting to do
    local tool = script.Parent
    tool.Activated:Connect(function()
    local clicked = false

    while clicked == false do

    local red = math.random(0, 255)
    local green = math.random(0, 255)
    local blue = math.random(0, 255)
    local num1 = math.random(2, 6)
    local num = num1/3

    tool.Handle.Color = Color3.fromRGB(red, green, blue)
    tool:ScaleTo(num)
    clicked = true

    end

    end)

  • @leandruss
    @leandruss ปีที่แล้ว

    BRO I SPENT AN HOUR TRYING TO DO THAT CHALLENGE CAUSE
    I had an issue where everything was working but the scale thing was crashing the game.
    Its cause i put the scaleto script INSIDE OF THE WHILE TRUE DO LOOP IM SUCH A MORON

    • @Whatyoi
      @Whatyoi 10 หลายเดือนก่อน +2

      "Mistakes are how we learn, you can't be good at something without making mistakes" - wise man

  • @SigmaMailRealOhio
    @SigmaMailRealOhio หลายเดือนก่อน

    local tool = script.Parent
    local handle = script.Parent:FindFirstChild("Handle")
    tool.Equipped:Connect(function()
    print("this tool has been equipped")
    end)
    tool.Activated:Connect(function()
    while true do
    handle.Size = handle.Size * 1.15
    handle.Color = Color3.fromRGB(math.random(0,255), math.random(0,255), math.random(0,255))
    handle.Transparency = math.random(0.1,0.8)
    wait(1)


    end

    end)

  • @sphyrobeet
    @sphyrobeet 24 วันที่ผ่านมา

    Thought the 2nd guideline was saying to gradually increase the tool with every click and then start decreasing after a certain threshold. Made my life 5x harder but learned to follow instructions and at least gotten my skills refined a bit better 🥲 Used 3 scripts too.

  • @averynstuff
    @averynstuff 3 หลายเดือนก่อน

    okay so i didnt do leaderstats but i did the sound and i like it.
    local tool = script.Parent
    local handle = tool.Handle
    toolused = false
    tool.Activated:Connect(function()
    if toolused == false then
    toolused = true
    tool:ScaleTo(2)
    handle.BrickColor = BrickColor.Random()
    tool.vineboom:Play()
    end
    end)
    tool.Deactivated:Connect(function()
    if toolused == true then
    toolused = false
    tool:ScaleTo(1)
    handle.BrickColor = BrickColor.new("Cocoa")
    end
    end)

  • @nahidwin-mn1ij
    @nahidwin-mn1ij 7 วันที่ผ่านมา +1

    I just made a gun bang bang
    local gun = script.Parent
    local handle = gun.Handle
    local equipSound = handle.EquipSound
    local unequipSound = handle.UnequipSound
    local fireSound = handle.FireSound
    local countDownUntilReload = 5
    gun.Equipped:Connect(function(mouse)
    equipSound:Play()
    task.wait(equipSound.TimeLength)
    end)
    gun.Unequipped:Connect(function(mouse)
    unequipSound:Play()
    task.wait(unequipSound.TimeLength)
    end)
    gun.Activated:Connect(function(mouse)
    fireSound:Play()
    task.wait(fireSound.TimeLength)
    countDownUntilReload = countDownUntilReload - 1

    if countDownUntilReload

  • @ArdaPOLAT-n3x
    @ArdaPOLAT-n3x 20 วันที่ผ่านมา +1

    i made a cookie clicker ma man les goo

  • @p7ve
    @p7ve 2 หลายเดือนก่อน +1

    with all respect
    wasted more then 1 hour watching this video cuz i watched it twice

  • @maidhall1699
    @maidhall1699 4 หลายเดือนก่อน

    don't use "Players: findfirstchild("yourname"). just put local player = tool.Parent.Parent

  • @jakedeee_
    @jakedeee_ 17 วันที่ผ่านมา

    local tool = script.Parent --this creates a reference for the tool
    local handle = tool.Handle --this creates a reference for the handle
    local sound = tool.Static --this creates a reference for the sound
    local sound2 = tool.Bubble
    local isHolding = false
    local WAIT_TIME = 0.2
    tool.Equipped:Connect(function()
    sound:Play()
    end)
    tool.Activated:Connect(function()
    print("clicked")
    sound2:Play()
    isHolding = true
    tool:ScaleTo(1.5)

    while isHolding == true do
    --handle.Color = Color3.fromRGB(math.random(0, 255), math.random(0, 255), math.random(0, 255))
    handle.BrickColor = BrickColor.new("Really red")
    task.wait(WAIT_TIME)
    end

    game.Players:FindFirstChild("NAME").leaderstats.Clicks.Value += math.random (5, 100)
    end)
    tool.Deactivated:Connect(function()
    isHolding = false
    tool:ScaleTo(1)
    handle.BrickColor = BrickColor.new("Medium stone grey")
    end)

  • @KnowbyAB
    @KnowbyAB หลายเดือนก่อน

    local tool = script.Parent
    local handle = tool.Handle
    local Swordequip = tool["Sword Sheath"]
    local Swordattack = tool["Knife Shing 102 (SFX)"]
    local isHolding = false
    --Equipped fires when a tool is equipped
    tool.Equipped:Connect(function()
    print("Tool equipped")
    Swordequip:Play()
    end)
    --Unequipped triggers when it is unequipped
    tool.Unequipped:Connect(function()
    print("Tool unequipped")
    end)
    --Activated event is triggered when a tool or object is used
    tool.Activated:Connect(function()
    print("Tool activated")
    Swordattack:Play()
    isHolding = true
    tool:ScaleTo(2)
    while isHolding == true do
    handle.Color = Color3.fromRGB(math.random(0, 255), math.random(0, 255), math.random(0, 255))
    task.wait(0.2)
    end
    game.Players:FindFirstChild("Beastyab_007").leaderstats.Clicks.Value += 1
    end)
    --Deactivated occurs when it is no longer in use
    tool.Deactivated:Connect(function()
    print("Tool unactivated")
    handle.Color = Color3.fromRGB(163, 162, 165)
    isHolding = false
    tool:ScaleTo(1)
    end)

  • @Test1-e9f
    @Test1-e9f 5 หลายเดือนก่อน

    What if someone do color rng🤣🤣 ? Like if color was 255,255,255 all the time of cycle, you getting badge

  • @Akunemal610
    @Akunemal610 6 หลายเดือนก่อน

    bodyvelocity when?

  • @LuminousEchoes12
    @LuminousEchoes12 19 วันที่ผ่านมา

    23:41

  • @BTalonH
    @BTalonH 4 หลายเดือนก่อน

    local player = tool.Parent.Name
    game.Players:FindFirstChild(player).leaderstats.Clicks.Value += 1

  • @sanya5965
    @sanya5965 5 หลายเดือนก่อน

    my version:
    local tool = script.Parent.Parent
    local Check = tool.Check
    local sound = tool.Notice4
    local handle = tool.Handle
    Check.Value = false
    tool.Equipped:Connect(function()
    sound:Play()
    end)
    tool.Activated:Connect(function()
    local player = game.Players:GetPlayerFromCharacter(tool.Parent)
    local playerStats = player:FindFirstChild("leaderstats")
    local clicks = playerStats.Clicks

    clicks.Value += 1
    Check.Value = true
    tool:ScaleTo(2)

    while Check.Value == true do
    handle.Color = Color3.new(math.random(0, 255), math.random(0, 255), math.random(0, 255))
    task.wait(.5)
    end
    end)
    tool.Deactivated:Connect(function()
    Check.Value = false
    tool:ScaleTo(1)
    end)

  • @overwolfclips
    @overwolfclips 2 หลายเดือนก่อน

    That was surprising easy

  • @ItsFootball-CR7
    @ItsFootball-CR7 3 หลายเดือนก่อน

    local tool = script.Parent
    local i = 0.5
    local toolActivated = false
    tool.Equipped:Connect(function()
    print("This tool has been equipped")
    end)
    tool.Activated:Connect(function()
    toolActivated = true
    end)
    tool.Deactivated:Connect(function()
    toolActivated = false
    end)
    while true do
    if toolActivated == true then
    tool:ScaleTo(i)
    i+=0.5
    else
    if( i == 0.5) then
    tool:ScaleTo(i)
    else
    i-=0.5
    tool:ScaleTo(i)
    end
    end
    task.wait(0.6)
    end
    I have added no limit to how much the scale of the tool can increase, I accidentally Unequipped the tool while I was holding left click and it kept increasing in size, just not visible yet, I equipped it and I got flung into air because it was so big 💀 (I know I shouldn't have used while loop without an end.)

  • @Naz-v3q
    @Naz-v3q 22 วันที่ผ่านมา

    20:13

  • @CatToy4000
    @CatToy4000 ปีที่แล้ว +1

    A