How to Script a FIREBALL ABILITY in ROBLOX STUDIO

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 พ.ย. 2022
  • If you enjoyed this scripting tutorial, please leave a like and subscribe :).
  • เกม

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

  • @obitoxfo1
    @obitoxfo1 ปีที่แล้ว +5

    it works really well and even though i had a few problems they were just typos or mistakes and not because of the video

  • @pudellok5267
    @pudellok5267 ปีที่แล้ว +12

    you explain very well, thanks for the tutorial!

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

    This really worked for me but i made some bugs during so i had to fix it but you earned a sub and like!

  • @user-fc9yt7pm8k
    @user-fc9yt7pm8k 2 หลายเดือนก่อน

    Thanks for the Tutorial, had just a little problem because of a typo. I didnt knew writting Cframe instand of CFrame made such a big diffrence xD

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

    your underrated great turtorial!

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

    I would suggest add the fire effect to it or a particle emitter and use one of the chungus effects on it

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

      then do it lol

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

    I had to fix so many small mistakes i made but thank you for the help!

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

    This is a good tutorial i subscribed

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

    keep goin you help me alot

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

    Ive did this before and it worked but now when im doing it the firball just spawns where i had it before i put it in replicated storage

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

    Thanks for the help

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

    when i use it it hits me instead of anything else and dissapears

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

    Great tutorial

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

    very cool, one thing is to put the script on the secription i think it would help

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

    How do i make it go only forward and not to my mouse?

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

    i follow the turtorial but some how to part just stand there and not follow my mouse

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

    NICE

  • @sgp_playz6875
    @sgp_playz6875 11 หลายเดือนก่อน +2

    How to make the fireball only go the horizontally, like not changing the height

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

      Juse take out the workspace.Gravity and make it 0

  • @Keketin
    @Keketin 8 หลายเดือนก่อน +6

    If the player doesn't take damage, use this version instead:
    local remote = game.ReplicatedStorage.FireballEvent
    remote.OnServerEvent:Connect(function(player,MousePosition)
    local fireball = game.ReplicatedStorage.Fireball:Clone()
    fireball.Parent = workspace
    fireball.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-2)

    local NewForce = Instance.new("BodyForce")
    NewForce.Force = Vector3.new(0,workspace.Gravity * fireball:GetMass(),0)
    NewForce.Parent = fireball

    fireball.Velocity = CFrame.new(player.Character.HumanoidRootPart.Position,MousePosition).LookVector * 50

    fireball.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") and not hit:IsDescendantOf(player.Character) then
    hit.Parent.Humanoid.Health -= 50 -- You can choose how much damage they take
    fireball:Destroy()
    end
    end)
    end)

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

      tysm it fixed

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

      ​@@goldenollies8338 Yw. I'm glad it helped. :D

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

      Can you help bc whenever i press button it spawns but not infront of me and it just spawns where it was on the map b4 i put it in replicated storage

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

    Its dealing more damage when im closer to player

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

    what if u have more than 1 part

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

    Can you make a version of this that uses a tool instead of a key input?

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

      just do tool.activated

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

    fact : it wont shoot. If you point it to the sky

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

    hey, i got a problem its sayinhg MousePosition isnt real

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

    This is really nice, but it doesnt seem to work for me, maybe next time you should put a copy of the code in the comments

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

    Why does it say UserInputService not a vaild service

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

    Everything worked the fireball spawned, only thing is, its not moving. How do I fix this? also how do I add an animation

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

      I suggest you to learn some basic scripting firsf

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

      Its anchored

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

    Thank you😉😉

  • @tytinoclp7866
    @tytinoclp7866 ปีที่แล้ว +9

    and what if I want to make it an ability that can be used from a chosen person? Thats only a question I want to make a server where me and my friends got different powers

    • @urucff9138
      @urucff9138 ปีที่แล้ว +3

      if you know how can you tell me?

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

      @@urucff9138 I second this, I want to know aswell

    • @T-ogla
      @T-ogla 10 หลายเดือนก่อน +1

      i know it is 5 month ago but. make a tool calld whatever u want make a script that fire a script when u use that tool and click on the right button. if u want to make like lvl system and have a lvl required just make an intvalu make the number in the valu to what ur lvl is make a leaderstats scrip that a coonected to the int value and then combine the intvalue in the tool script that tells u required lvl

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

    In the output appears a error message for "GetMouse" in the DetectionButton script, anyone knows how to fix that?

    • @user-xi1hs4nx5z
      @user-xi1hs4nx5z 7 หลายเดือนก่อน

      i got it too, if u got the player service using local player = game:game:GetService("Players"), thats wrong, you need to use
      local player = game.Players.LocalPlayer
      and GetMouse needs a () at the final: GetMouse()

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

    Make a light beam attack like thanos’s power stone

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

    i want to add animation please someone please help me

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

    how about a npc shooting fireballs at you but if they dont aim perfectly, creates a shockwave at the position where the fireball hit something (the shockwave grows then it fades)

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

      good idea

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

      Bruh it’s not work

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

    everytime i watch scripting video it always dont work pls help me

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

    the script is correct and everything but it doesnt disappear when the fireball hit a dummy

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

      how do u did it? i cant bc it gives me a error on "GetMouse" and idk how to fix it

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

    How do you stop the little bit of lag that the projectile does as it spawns, it makes it wonky to fire it while moving

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

      Look into event:FireAllClients(), client replication

  • @ghostlol-cw1xy
    @ghostlol-cw1xy 7 หลายเดือนก่อน

    how do i make this so its where am facing
    not where my mouse is pointed (pls send scrit in replies)

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

    Workspace.Denis_Prieten.DetectButton:1: Expected '(', '{' or when parsing function call, got '.' - Studio - DetectButton:1 This is the error it gives me

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

    do it have to be r15 because im making a game in r6 and it not working

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

    why in the actual world would you make the PROJECTILE server sided

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

    does it still work?

  • @xPenguinrr
    @xPenguinrr ปีที่แล้ว +5

    I wanted to ask if i did anything wrong in the first script
    local player = game.Players.LocalPlayer
    local mouse = player:GetMouse()
    local remote = game.ReplicatedStorage.FireballEvent
    local debounce = false
    game.GetService("UserInputService").InputBegan:Connect(function(input,gpe)
    if input.KeyCode == Enum.Kecode.Q and not gpe and not debounce then
    debounce = true
    remote:FireServer(mouse.Hit.p)
    wait(.5)
    debounce = false
    end
    end)

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

      at the bottom u put
      wait(.5)

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

      said Keycode instead of KeyCode, and said "." instead of ":" on multiple occasions

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

      @@michaelpeou1475 the wait is correct

    • @ElCrasheadoXD
      @ElCrasheadoXD 11 หลายเดือนก่อน +2

      im new at this and idk that script at all but i thing its because u put "Kecode" instead of KeyCode

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

      ​@Sfloon you have to put : not . Is what it's saying

  • @user-ll5gd8rp1q
    @user-ll5gd8rp1q 11 หลายเดือนก่อน

    I did everything but i made mistakes i tried fixing them but the ball spawns on one place help

    • @user-xi1hs4nx5z
      @user-xi1hs4nx5z 7 หลายเดือนก่อน

      my codes:
      detect:
      local player = game.Players.LocalPlayer
      local mouse = player:GetMouse()
      local remote = game.ReplicatedStorage.FireballEvent
      debounce = false
      game:GetService("UserInputService").InputBegan:Connect(function(input, gpe)
      if input.KeyCode == Enum.KeyCode.F and not gpe and not debounce then
      debounce = true
      remote:FireServer(mouse.Hit.p)
      wait(.5)
      debounce = false
      end
      end)
      release:
      local remote = game.ReplicatedStorage.FireballEvent
      remote.OnServerEvent:Connect(function(player,MousePosition)
      local fireball = game.ReplicatedStorage.Fireball:Clone()
      fireball.Parent = game.workspace
      fireball.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-2)
      local NewForce = Instance.new("BodyForce")
      NewForce.Force = Vector3.new(0,workspace.Gravity * fireball:GetMass(),0)
      NewForce.Parent = fireball
      fireball.Velocity = CFrame.new(player.Character.HumanoidRootPart.Position,MousePosition).LookVector * 50
      fireball.Touched:Connect(function(hit)
      if hit.Parent:FindFirstChild("Humanoid") and not hit:IsDescendantOf(player.Character) then
      hit.Parent.Humanoid.Health -= 50
      fireball:Destroy()
      end
      end)
      end)

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

    @wundev how do I make it so that my part faces the direction of my mouse instead of go to it?

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

      you would have to use complex maths

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

      mouse.hit

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

    can you make any shape?

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

    Can someone tell me how i can make it in tool and a left-click instead of a Key

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

      Add a tool set HandleRequired off the make script like tool.activited:Connect(function) then the event fire server

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

    how do i make it so that it casts an animation and then fires the fireball?

    • @T-ogla
      @T-ogla 10 หลายเดือนก่อน

      u just make the animatin and tell it to play the animation when button clicked

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

      @@T-ogla how do i do that

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

      @@foxenbox you're gonna need a whole other tutorial for that

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

    it didint work but i keep it

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

    Why I though it was the Super Mario's Fire Flower ability? 🗿

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

    It worked very well and the dmg is good but can u tell me how can i make it able only in required lvl

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

      ik this was 4 months ago but make a int value And make the value at 5 in the script put -- And if -Intvalue name-.Value >= 5 then
      then make the script run after
      end

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

    yeah no this did not work honestly i spent 2 hours on this and figure out the it didn't work and its not for mobile also the quality of the video is very confusing are you able to make a mobile and pc one?

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

    Why Won't It Work?

  • @glitcher9453
    @glitcher9453 ปีที่แล้ว +3

    How do you make it bounce around?

    • @T-ogla
      @T-ogla 10 หลายเดือนก่อน

      just make it can colide on

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

    so the script worked perfectly fine, but i have some friends that are on mobile and want to play the game, how do i add mobile controls?

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

      U can call the function via a gui button

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

    When I shoot the fireball it bounces off objects and flies infinitely, it helps

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

      you probably have can collide on and the flying infinetly can be fixed with this at the end of your code btw replace purple with whatever your part is called, you can also change the 10 to whatever u want the dissapear time to be. wait(10)
      if Purple.Parent then
      Purple:Destroy()

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

      @@AtlasTheRelic Thank you so much!

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

      @@yostdev Hey isee that you Comment is quiteRect so i have a Question
      In theDetectButton Scipt it tells me that 'UserinputService' is not a valid Service Name so what did you do the fix that??

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

    Hi im rtx heal im gonna make a game so you knows good scripting i was going to ask that if you can help me on it

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

    sensi it did not work and idk what i did wrong can u sent a link to the script so i can copy and paste

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

    So i did copy the code, it work, but i want that when i click on a text button i have permission to use the dettect button script, and if i dont click on the text button it do nothing

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

      yo bro i think this can work:
      if gpe == true then return nothing
      what it basicliy does it checks if the player is doing other thing or he is playing

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

      remember to put it inside the key part

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

      @@user-px1yy2tt6m ok

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

    It doesn't work. I don't Know what I did wrong. Please help.
    First Script (DetectButton)
    -----------------------------------------------------------------------------------------------------------
    local player=game.Players.LocalPlayer
    local mouse=player.GetMouse()
    local remote=game.ReplicatedStorage.FireballEvent
    local debounce=false
    game:GetService("UserInputService").InputBegan:Connect(function(input,gpe)
    if input.KeyCode==Enum.KeyCode.R and not gpe and not debounce then
    debounce=true
    remote:FireServer(mouse.Hit.p)
    wait(0.5)
    debounce=false
    end
    end)
    -----------------------------------------------------------------------------------------------------------
    Second Script (ServerScriptService Script)
    -----------------------------------------------------------------------------------------------------------
    local remote=game.ReplicatedStorage.FireballEvent
    remote.OnServerEvent:Connect(function(player,MousePosition)
    local fireball=game.ReplicatedStorage.Fireball:Clone()
    fireball.Parent=workspace
    fireball.CFrame=player.Character.HumanoidRootPart.CFrame*CFrame.new(0,0,-2)

    local NewForce=Instance.new("BodyForce")
    NewForce.Force=Vector3.new(0,workspace.Gravity*fireball:GetMass(),0)
    NewForce.Parent=fireball

    fireball.Velocity=CFrame.new(player.Character.HumanoidRootPart.Position,MousePosition).LookVector*50

    fireball.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") and not hit:IsDescendantOf(player.Character)then
    hit.Parent:FindFirstChild("Humanoid"):TakeDamage(50)
    fireball:Destroy()
    end
    end)
    end)
    ----------------------------------------------------------------------------------------------------------------

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

    IT DIDNT WORK FOR ME

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

    it didnt work for me i followed all the steps when i went to test i i pressed q and nothing happended

    • @combo-si6qs
      @combo-si6qs 11 หลายเดือนก่อน

      look at the output look for errors

    • @user-xi1hs4nx5z
      @user-xi1hs4nx5z 7 หลายเดือนก่อน

      try another keycode, i tried q and didnt work, then i switch to f and work

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

    How the heck did you acsessed the character in a script? I mean, you can use the character block in a LocalScript, but in a Script? How???

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

      When you use ":FireServer()" 3:48, it sends the player who fired it as a parameter to the server (he's also sending the mouse position)
      and then here 5:02, he's accessing it with "player" and "MousePosition".

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

      @@Saiki13 ohhhhhhhhhhhhhhhhhh thx man

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

    I did everything and it's still not working
    Like when I press Q it doesnt show the fireball

    • @7emeraldsZ
      @7emeraldsZ ปีที่แล้ว

      Check the output

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

      @@7emeraldsZ wdym

    • @7emeraldsZ
      @7emeraldsZ ปีที่แล้ว

      It’s basically a thing that shows you an error if you have one

    • @7emeraldsZ
      @7emeraldsZ ปีที่แล้ว

      The output is at the view section and I think it’s at the top section

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

    why is this not working
    local player = game:GetService("Players")
    local mouse = player:GetMouse()
    local remote = game.ReplicatedStorage.RemoteEvent
    local debounce = false
    game:GetService("UserInputService").InputBegan:Connect(function(input,gpe)
    if input.KeyCode == Enum.KeyCode.E and gpe and not debounce then
    debounce = true
    remote:FireServer(mouse.Hit.p)
    wait(5)
    debounce = false
    end
    end)
    local remote = game.ReplicatedStorage.RemoteEvent
    remote.OnServerEvent:Connect(function(player,MousePosition)
    local fireball = game.ReplicatedStorage.Slash:Clone()
    fireball.Parent = workspace
    fireball.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-2)
    fireball.Massless = true

    local newForce = Instance.new("BodyForce")
    newForce.Force = Vector3.new(0,workspace.Gravity*fireball:GetMass(),0)
    newForce.Parent = fireball

    fireball.Velocity = CFrame.new(player.Character.HumanoidRootPart.Position.MousePosition).LookVector*50


    fireball.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") and not hit:IsDescendantOf(player.Character) then
    hit.Parent:FindFirstChild("Humanoid"):TakeDamage(50)
    fireball:Destroy()

    end
    end)
    end)

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

    everything works except it keeps going up lol. u got a fix?

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

      fireball:destroy() when it registers its hit

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

    it not working for me idk why only the player move the part doesn't move :(

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

      See if you switched up the periods colons and commas because thats what I did wrong

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

    doesnt work

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

    Works perfectly, but how do I put a lifetime on it so it doesn't continue forever

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

    could this be used as a tool?

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

    Bruh it’s not work

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

    wow it works! but... how would you animate this?

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

      play an animation when player presses Q

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

      @@defnotmylo your suggestion literally helps nobody

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

    Cframe is not a valid member of Part

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

      You have to type CFrame, both C and F should be big

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

    It didn’t work

  • @user-ik2tl3pw1o
    @user-ik2tl3pw1o 3 หลายเดือนก่อน

    dont work

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

    "fireball is not a valid member of replicated storage" what am i supposed to do

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

    I rewatched a couple of time the video but couldn't find why the fireball wasn't accually moving can someone help? Heres my script
    local remote = game.ReplicatedStorage.FireballEvent
    remote.OnServerEvent:Connect(function(player,MousePosition)
    local fireball = game.ReplicatedStorage.Fireball:Clone()
    fireball.Parent = workspace
    fireball.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-2)
    fireball.Massless = true

    local newForce = Instance.new("BodyForce")
    newForce.Force = Vector3.new(0,workspace.Gravity*fireball:GetMass(),0)
    newForce.Parent = fireball

    fireball.Velocity = Vector3.new(player.Character.HumanoidRootPart,MousePosition).LookVector * 50

    fireball.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid")and not hit:IsDescendantOf(player.Character) then
    hit.Parent:FindFirstChild("Humanoid"):TakeDamage(50)
    fireball:Destroy()
    end
    end)
    end)

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

      Your mistake is in the line
      fireball.Velocity = Vector3.new(player.Character.HumanoidRootPart,MousePosition).LookVector * 50
      Rather than it being a Vector3.new, it should be CFrame.new
      The corrected line should state:
      fireball.Velocity = CFrame.new(player.Character.HumanoidRootPart, MousePosition).LookVector * 50
      I apologise that this is a few months late, but there's the issue you had!
      Hope it helps!
      - Necra

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

    Can you put the scripts in the comments for people to copy and paste cause i did it wrong and idk what I did

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

      nice thats a good idea

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

      @@Xyron2ye

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

    i tapped q and a fireball didn't come out

    • @MadaraUchiha-ly6pu
      @MadaraUchiha-ly6pu ปีที่แล้ว

      It happend to me and i fixed it and here is how.
      On the top of the screen it Will say view press there and go to output then test and it Will show all ettors.

    • @user-xi1hs4nx5z
      @user-xi1hs4nx5z 7 หลายเดือนก่อน

      try f

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

    FireballEvent is not a valid member of ReplicatedStorage "ReplicatedStorage"
    LocalPlayer is not a valid member of DataModel "Baseplate"
    these problems which appeared when i tried to play and now im just tooooo tired and being sad bc i cant understand why i cant get rect of it..............pls help

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

      Go learn the basics 🗿

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

      You need to add a remote event in replicated storage, Name it "FireballEvent". + I suggest learning basic lua 1st.

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

      @@ZenkaiDragon400 fr

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

      how do you not know what that means

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

    Help my fireball isn’t cloning 😭😭😭

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

      Did you fix it? :)

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

    would tween work

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

      Yes it’s harder to do it that way but it makes it a lot smoother

  • @BeratPolat-wt4en
    @BeratPolat-wt4en 5 หลายเดือนก่อน

    My remote is unknown,why?

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

      make sure to name it correctly eg w/ caps

  • @ElCrasheadoXD
    @ElCrasheadoXD 11 หลายเดือนก่อน +3

    can someone tell me what i did something wrong? (sorry if my english is bad :( )
    first script(I replaced the fireball for a bone lol)
    local player = game.Players.LocalPlayer
    local mouse = player.GetMouse()
    local remote = game.ReplicatedStorage.BoneEvent
    local debounce = false
    game:GetService(UserInputService).InputBegan:Connect(function(Input,gpe)
    if Input.KeyCode == Enum.KeyCodeQ and not gpe and not debounce then
    debounce = true
    remote:FireServer(mouse.Hit.p)
    wait(.5)
    debounce = false
    end
    end)
    and the second script
    local remote = game.ReplicatedStorage.BoneEvent
    remote.OnServerEvent:Connect(function(player, mouseposition)
    local bone = game.ReplicatedStorage.bone:clone()
    bone.Parent = workspace
    bone.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame(0,0,-2)
    local NewForce = Instance.new("BodyForce")
    NewForce.force = Vector3.new(0, workspace.Gravity * bone:GetMass(),0)
    NewForce.Parent = bone
    bone.Velocity = CFrame.new(player.Character.HumanoidRootPart.position, mouseposition).LookVector * 50
    bone.touched:connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") and not hit:IsDescendantOf(player.character) then
    hit.Parent:FindFirstChild("humanoid"):TakeDamage(15)
    bone:Destory()
    end
    end)
    end)

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

      thank you Very Much

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

      thx

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

      you forgot the quotations on (UserInputService) it should be ("UserInputService") on the first script

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

      you also did on the first script. local mouse = .GetMouse() when it should be local mouse = :GetMouse()

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

      and on this line if Input.KeyCode == Enum.KeyCodeQ and not gpe and not debounce then there needs to be A . here Enum.KeyCode.Q

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

    is it possible for mobile support for this

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

      u can add a mobile button then make it so when u touch a button it activates the ability so you have to touch the screen in order to hit after you tap the button

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

      @@crituus thanks

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

    i made all scripts right and then played pressed Q and nothing happened this is a scam liar

    • @user-xi1hs4nx5z
      @user-xi1hs4nx5z 7 หลายเดือนก่อน

      try to switch the keycode, cause if you press q, it will navigate through the buttons. i use f

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

    You are crazy bro hahahahaha

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

    My fireball is not spawning

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

      Tutorial is outdated I suggest looking for a new one.

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

      @@eugene4287 not outdated

    • @ghostlol-cw1xy
      @ghostlol-cw1xy 7 หลายเดือนก่อน

      its not
      @@eugene4287

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

    it doesnt even make part appear when i press Q,bruh...

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

    Pls reply the script so I can copy it and paste thx I can’t remember all this scripting so pls reply the script
    😊😊😊😊😊❤❤❤❤❤

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

      local player = game.Players.LocalPlayer
      local mouse = player:GetMouse()
      local remote = game.ReplicatedStorage.DamageBlock10Event
      local debouce = false
      game:GetService("UserInputService").InputBegan:Connect(function(input, gpe)
      if input.KeyCode == Enum.KeyCode.Q and not gpe and not debouce then
      debouce = true
      remote:FireServer(mouse.Hit.p)
      wait(.5)
      debouce = false
      end
      end)

    • @user-xi1hs4nx5z
      @user-xi1hs4nx5z 7 หลายเดือนก่อน

      local remote = game.ReplicatedStorage.FireballEvent
      remote.OnServerEvent:Connect(function(player,MousePosition)
      local fireball = game.ReplicatedStorage.Fireball:Clone()
      fireball.Parent = game.workspace
      fireball.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-2)
      local NewForce = Instance.new("BodyForce")
      NewForce.Force = Vector3.new(0,workspace.Gravity * fireball:GetMass(),0)
      NewForce.Parent = fireball
      fireball.Velocity = CFrame.new(player.Character.HumanoidRootPart.Position,MousePosition).LookVector * 50
      fireball.Touched:Connect(function(hit)
      if hit.Parent:FindFirstChild("Humanoid") and not hit:IsDescendantOf(player.Character) then
      hit.Parent.Humanoid.Health -= 50
      fireball:Destroy()
      end
      end)
      end)

  • @user-mx1zk3vx2z
    @user-mx1zk3vx2z 6 หลายเดือนก่อน

    it didnt work

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

      There’s always one comment that says this

  • @J4x0n.39
    @J4x0n.39 7 หลายเดือนก่อน +6

    None of this worked

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

    Nothing is the video worked

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

      this video is from 2023, roblox studio has updated, now this code don't work

  • @Random-That-barely-post
    @Random-That-barely-post ปีที่แล้ว

    honestly pin me

  • @H3LLO_._
    @H3LLO_._ ปีที่แล้ว

    wasted my time didnt work unsubbed

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

    Can anybody help? for some reason it wont work
    Here are my scripts:
    Detect:
    local player = game.Players.LocalPlayer
    local mouse = player:GetMouse()
    local remote = game.ReplicatedStorage.FireballEvent
    debounce = false
    game:GetService("UserInputService").InputBegan:Connect(function(input, gpe)
    if input.KeyCode == Enum.KeyCode.F and not gpe and not debounce then
    debounce = true
    remote:FireServer(mouse.Hit.p)
    wait(.5)
    debounce = false
    end
    end)
    release:
    local remote = game.ReplicatedStorage.FireballEvent
    remote.OnServerEvent:Connect(function(player,MousePosition)
    local fireball = game.ReplicatedStorage.Fireball:Clone()
    fireball.Parent = game.workspace
    fireball.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-2)
    local NewForce = Instance.new("BodyForce")
    NewForce.Force = Vector3.new(0,workspace.Gravity * fireball:GetMass(),0)
    NewForce.Parent = fireball
    fireball.Velocity = CFrame.new(player.Character.HumanoidRootPart.Position,MousePosition).LookVector * 50
    fireball.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") and not hit:IsDescendantOf(player.Character) then
    hit.Parent.Humanoid.Health -= 50
    fireball:Destroy()
    end
    end)
    end)
    and i have set up the names correctly so they match and placed them in the files shown in the video i cant find whats wrong

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

    script:
    local remote = game.ReplicatedStorage.FireballEvent
    remote.OnServerEvent:Connect(function(player, MousePosition)
    local fireball = game.ReplicatedStorage.Fireball:Clone()
    fireball.Parent = workspace
    fireball.CFrame = player.Character.HumanoidRootPart.CFrame*CFrame.new(0,0,-2)

    local NewForce = Instance.new("BodyForce")
    NewForce.Force = Vector3.new(0, workspace.Gravity * fireball:GetMass(), 0)
    NewForce.Parent = fireball

    fireball.Velocity = CFrame.new(player.Character.HumanoidRootPart.Position, MousePosition).LookVector * 50

    fireball.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") then
    hit.Parent:FindFirstChild("Humanoid"):TakeDamage(50)
    fireball:Destroy()
    end
    end)
    end)
    DetectButton:
    local player = game.Players.LocalPlayer
    local mouse = player:GetMouse()
    local remote = game.ReplicatedStorage.FireballEvent
    local debouce = false
    game:GetService("UserInputService").InputBegan:Connect(function(input, gpe)
    if input.KeyCode == Enum.KeyCode.Q and not gpe and not debouce then
    debouce = true
    remote:FireServer(mouse.Hit.p)
    wait(.5)
    debouce = false
    end
    end)

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

      thank you bro

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

      i was also gon send something like this but guess not lol (also thanks)

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

    can someone please tell me why its not working for me (i changed mine to DamageBlock10 And DamageBlock10Event)
    script:
    local remote = game.ReplicatedStorage.DamageBlock10Event
    remote.OnServerEvent:Connect(function(player, MousePosition)
    local DamageBlock10 = game.ReplicatedStorage.DamageBlock10Event:Clone()
    DamageBlock10.Parent = workspace
    DamageBlock10.CFrame = player.Character.HumanoidRootPart.CFrame*CFrame.new(0,0,-2)
    local NewForce = Instance.new("BodyForce")
    NewForce.Force = Vector3.new(0, workspace.Gravity * DamageBlock10:GetMass(), 0)
    NewForce.Parent = DamageBlock10
    DamageBlock10.Velocity = CFrame.new(player.Character.HumanoidRootPart.Position, MousePosition).LookVector * 50
    DamageBlock10.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") then
    hit.Parent:FindFirstChild("Humanoid"):TakeDamage(10)
    DamageBlock10:Destroy()
    end
    end)
    end)
    detectButton:
    local player = game.Players.LocalPlayer
    local mouse = player:GetMouse()
    local remote = game.ReplicatedStorage.DamageBlock10Event
    local debouce = false
    game:GetService("UserInputService").InputBegan:Connect(function(input, gpe)
    if input.KeyCode == Enum.KeyCode.Q and not gpe and not debouce then
    debouce = true
    remote:FireServer(mouse.Hit.p)
    wait(.5)
    debouce = false
    end
    end)
    __________________________
    Thanks!

    • @user-xi1hs4nx5z
      @user-xi1hs4nx5z 7 หลายเดือนก่อน

      try this:
      detect:
      local player = game.Players.LocalPlayer
      local mouse = player:GetMouse()
      local remote = game.ReplicatedStorage.DamageBlock10Event
      local debounce = false
      game:GetService("UserInputService").InputBegan:Connect(function(input, gameProcessedEvent)
      if input.KeyCode == Enum.KeyCode.Q and not gameProcessedEvent and not debounce then
      debounce = true
      remote:FireServer(mouse.Hit.p)
      wait(0.5)
      debounce = false
      end
      end)
      other:
      local remote = game.ReplicatedStorage.FireballEvent
      remote.OnServerEvent:Connect(function(player, MousePosition)
      if not player or not player.Character or not player.Character:FindFirstChild("Humanoid") then
      return
      end
      local fireball = game.ReplicatedStorage.Fireball:Clone()
      fireball.Parent = game.workspace
      fireball.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, -2)
      local NewForce = Instance.new("BodyForce")
      NewForce.Force = Vector3.new(0, game.Workspace.Gravity * fireball:GetMass(), 0)
      NewForce.Parent = fireball
      fireball.Velocity = CFrame.new(player.Character.HumanoidRootPart.Position, MousePosition).LookVector * 50
      fireball.Touched:Connect(function(hit)
      if hit.Parent and hit.Parent:FindFirstChild("Humanoid") and not hit:IsDescendantOf(player.Character) then
      local humanoid = hit.Parent.Humanoid
      if humanoid.Health then
      humanoid.Health = humanoid.Health - 50
      fireball:Destroy()
      end
      end
      end)
      fireball.AncestryChanged:Connect(function()
      if fireball.Parent == nil then
      NewForce:Destroy()
      end
      end)
      end)

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

    My fireball wont appear, These are my scripts: The Script:
    local remote = game.ReplicatedStorage.FireBallEvent
    remote.OnServerEvent:Connect(function(player, MousePosition)
    local fireball = game.ReplicatedStorage.Clone()
    fireball.Parent = workspace
    fireball.CFrame = player.HumaniodRootPart.Part.CFrame ^ CFrame.new(0,0-2)

    local NewForce = Instance.new("BodyForce")
    NewForce.Force = Vector3.new(0,workspace.Gravity ^ fireball:GetMass(),0)
    NewForce.Parent = fireball

    fireball.Velocity = CFrame.new(player.Character.HumanoidRootPart).Position,MousePosition.LookVector ^ 50

    fireball.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid")and not hit:IsDescendantOf(player.Character) then
    hit.Parent:FindFirstChild("Humaniod"):TakeDamage(50)
    fireball:Destroy()
    end
    end)
    end)
    The Local Script:
    local player = game.Players.LocalPlayer
    local mouse = player.GetMouse()
    local remote = game.ReplicatedStorage.FireBallEvent
    local debounce = false
    game.GetService("UserInputService").InputBegan.Connect(function(Input,gpe)
    if Input.KeyCode == Enum.KeyCode.Z and not gpe and not debounce then
    debounce = true
    remote:FireServer(mouse.Hit.p)
    wait(.5)
    debounce = false
    end
    end)
    Also when i check output nothing happens with I think its the Detect Script.

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

      You've probably already fixed this but in your server script right here: fireball.CFrame = player.HumaniodRootPart.Part.CFrame ^ CFrame.new(0,0-2)
      You use a ^ instead of *, when working with CFrames, you need to times the value, not put it to an exponent.

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

      @@OrchidDev aight bet thxx

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

    local remote = game.ReplicatedStorage.FireBallEvent
    remote.OnServerEvent:Connect(function(player,MousePosition)
    local fireball = game.ReplicatedStorage.Fireball:Clone()
    fireball.Parent = workspace
    fireball.CFrame = player.Character.HumanoidRootPart.CFrame CFrame.new(0,0,-2)
    local NewForce = Instance.new("BodyForce")
    NewForce.Force = Vector3.new(0,workspace.Gravity*fireball:GetMass(0)
    NewForce.Parent = fireball

    fireball.Velocity = CFrame.new(player.Character.HumanoidRootPart.Position,MousePosition).LookVector*50

    fireball.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") and not hit:isDescendantOf(player.Character) then
    hit.Parent:FindFirstChild("Humanoid"):TakeDamage(50)
    fireball:Destroy()
    end
    end)
    end)

  • @thelcecreamman5191
    @thelcecreamman5191 ปีที่แล้ว +3

    If anyone body is stuck on the second script, here is a copy and past! the entirety of it is below. It made it shoot like in the video
    local remote = game.ReplicatedStorage.FireballEvent
    remote.OnServerEvent:Connect(function(player, mousePosition)
    local fireball = game.ReplicatedStorage.Fireball:Clone()
    fireball.Parent = workspace
    fireball.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, -2)
    local NewForce = Instance.new("BodyForce")
    NewForce.Force = Vector3.new(0, workspace.Gravity * fireball:GetMass(), 0)
    NewForce.Parent = fireball
    fireball.Velocity = CFrame.new(player.Character.HumanoidRootPart.Position, mousePosition).LookVector * 50
    fireball.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") and not hit:IsDescendantOf(player.Character) then
    hit.Parent:FindFirstChild("Humanoid"):TakeDamage(50)
    fireball:Destroy()
    end
    end)
    end)