How to Script a FIREBALL ABILITY in ROBLOX STUDIO

Поділитися
Вставка
  • Опубліковано 29 гру 2024
  • Ігри

КОМЕНТАРІ •

  • @obitoxfo1
    @obitoxfo1 Рік тому +6

    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 10 місяців тому +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!

  • @Keketin
    @Keketin Рік тому +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 Рік тому +1

      tysm it fixed

    • @Keketin
      @Keketin Рік тому

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

    • @BradenLmao
      @BradenLmao 11 місяців тому

      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

    • @mushroomsrcool1449
      @mushroomsrcool1449 3 місяці тому

      @@BradenLmao You might've anchored it for some reason?
      That or you messed up the code and so it spawns where the object is in the Replicated Storage thingy, instead of the HumanoidRootPart.

  • @user-fc9yt7pm8k
    @user-fc9yt7pm8k 8 місяців тому +1

    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

  • @neeyon2508
    @neeyon2508 Місяць тому

    guys i make a destroy event when the fireball touch the wall but i dont understand why the fireball disappeared early before it hit the wall, and sometimes it even disappeared later after it hit the wall😢

  • @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 Рік тому +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

  • @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

  • @TBCe-sports349
    @TBCe-sports349 8 місяців тому +1

    your underrated great turtorial!

  • @Димаивсевсевсе
    @Димаивсевсевсе 2 місяці тому

    Thanks! I fixed some errors that i made so it will work, I'll use it for my battlegrounds game!

  • @SpringLockEdits
    @SpringLockEdits 8 місяців тому +3

    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)
    ----------------------------------------------------------------------------------------------------------------

    • @rooblixkewb7952
      @rooblixkewb7952 2 місяці тому

      It looks completely right to me, maybe the
      fireball.Parent=workspace
      could turn into
      fireball.Parent=game.Workspace

    • @rooblixkewb7952
      @rooblixkewb7952 2 місяці тому

      What did the error message say? Or was there not one and it's just not working? Is the first script on a local script under StarterCharacterScripts and did you put the Fireball and FireballEvent in ReplicatedStorage? Is the second script a regular script under ServerScriptService?

    • @SpringLockEdits
      @SpringLockEdits 2 місяці тому +1

      @@rooblixkewb7952 bro it’s been so long since I commented that I forgot about this game. I think I just used another tutorial but thanks for answering anyways. 👋

  • @tander9498
    @tander9498 Рік тому +4

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

    • @ransu6852
      @ransu6852 6 місяців тому

      just do tool.activated

  • @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 Рік тому +2

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

    • @dereckhernandezrivera3473
      @dereckhernandezrivera3473 5 місяців тому

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

  • @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

    • @misterd3v1
      @misterd3v1 Рік тому

      I suggest you to learn some basic scripting firsf

    • @inferno1257
      @inferno1257 Рік тому

      Its anchored

  • @BradenLmao
    @BradenLmao 11 місяців тому

    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

  • @corbloxs7081
    @corbloxs7081 2 місяці тому

    What if it acts as if you threw 2 or 5 but really, the player only threw it one time?

  • @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_ Рік тому

      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

  • @yostdev
    @yostdev 11 місяців тому +1

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

    • @AtlasTheRelic
      @AtlasTheRelic 11 місяців тому +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 11 місяців тому

      @@AtlasTheRelic Thank you so much!

    • @LOYBROKING
      @LOYBROKING 10 місяців тому

      @@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??

  • @Red_Offical
    @Red_Offical Рік тому +1

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

    • @ariosunacota895
      @ariosunacota895 Рік тому

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

    • @heatedrindo
      @heatedrindo 5 місяців тому

      remember to add a :destroy() function

  • @sgp_playz6875
    @sgp_playz6875 Рік тому +2

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

    • @kiotoko7798
      @kiotoko7798 9 місяців тому

      Juse take out the workspace.Gravity and make it 0

  • @That1_derr
    @That1_derr 10 місяців тому

    This is a good tutorial i subscribed

  • @blueslime5787
    @blueslime5787 10 місяців тому +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

    • @mushroomsrcool1449
      @mushroomsrcool1449 3 місяці тому

      Didn't seem to work for me either.
      Which means we've likely both messed something up.

  • @EnderMano67
    @EnderMano67 7 місяців тому +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 7 місяців тому

      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 7 місяців тому +1

      @@Saiki13 ohhhhhhhhhhhhhhhhhh thx man

  • @WarriorKi
    @WarriorKi 3 місяці тому

    Instead of key code use user input type because that’s the new version for it

  • @lewitch09
    @lewitch09 Рік тому +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 Рік тому +1

      thank you bro

    • @Ubihh
      @Ubihh Рік тому

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

  • @crituus
    @crituus 10 місяців тому +1

    what if u have more than 1 part

  • @Hockets
    @Hockets Рік тому +1

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

  • @leandruss
    @leandruss Рік тому

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

  • @arkona9049
    @arkona9049 Рік тому +1

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

  • @stevenbigodon9614
    @stevenbigodon9614 Рік тому +1

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

  • @phucthinhbuiphan8312
    @phucthinhbuiphan8312 Рік тому

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

  • @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)

  • @themilkstar
    @themilkstar 7 місяців тому

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

  • @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

  • @HiGordon
    @HiGordon 11 місяців тому

    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)

  • @thesmiley5171
    @thesmiley5171 Рік тому +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 8 місяців тому +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 8 місяців тому +1

      remember to put it inside the key part

    • @thesmiley5171
      @thesmiley5171 8 місяців тому

      @@user-px1yy2tt6m ok

  • @ariosunacota895
    @ariosunacota895 Рік тому

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

    • @MiguelEstevez-x6y
      @MiguelEstevez-x6y Рік тому

      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()

  • @glitcher9453
    @glitcher9453 Рік тому +3

    How do you make it bounce around?

    • @T-ogla
      @T-ogla Рік тому

      just make it can colide on

  • @DaGlevis
    @DaGlevis 7 місяців тому

    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?

  • @YougiYT
    @YougiYT 5 місяців тому

    it says "invalid argument #2 to 'new' (vector3 expected, got CFrame)" can u help me with at?

  • @user-ll5gd8rp1q
    @user-ll5gd8rp1q Рік тому

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

    • @MiguelEstevez-x6y
      @MiguelEstevez-x6y Рік тому

      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)

  • @DarkBlead
    @DarkBlead Рік тому

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

  • @ElCrasheadoXD
    @ElCrasheadoXD Рік тому +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)

    • @Sir_F4lx
      @Sir_F4lx Рік тому +1

      thank you Very Much

    • @KaiKWins
      @KaiKWins 10 місяців тому

      thx

    • @Jam-69420
      @Jam-69420 10 місяців тому +1

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

    • @Jam-69420
      @Jam-69420 10 місяців тому +1

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

    • @Jam-69420
      @Jam-69420 10 місяців тому +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

  • @foxenbox
    @foxenbox Рік тому +1

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

    • @T-ogla
      @T-ogla Рік тому

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

    • @foxenbox
      @foxenbox Рік тому

      @@T-ogla how do i do that

    • @Narvalo_Lastar
      @Narvalo_Lastar Рік тому

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

  • @Sparasemi456
    @Sparasemi456 Рік тому +1

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

  • @denis25YT
    @denis25YT 11 місяців тому

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

  • @danielbehm7879
    @danielbehm7879 Рік тому +1

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

    • @shiver8191
      @shiver8191 Рік тому

      Debris im p sure

    • @erglwrgl
      @erglwrgl Рік тому +1

      Debris:AddItem(fireball,LifeTime)

  • @Helixplaysrblx
    @Helixplaysrblx 11 місяців тому

    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 11 місяців тому

      U can call the function via a gui button

  • @Lexiconwolf314
    @Lexiconwolf314 Рік тому

    Thanks for the help

  • @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 Рік тому

      Look into event:FireAllClients(), client replication

  • @YourLocalWarGorilla
    @YourLocalWarGorilla 8 місяців тому

    hey, i got a problem its sayinhg MousePosition isnt real

  • @DinoBattlesDude123
    @DinoBattlesDude123 Рік тому +1

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

    • @MiguelEstevez-x6y
      @MiguelEstevez-x6y Рік тому

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

  • @rexzy6584
    @rexzy6584 8 місяців тому

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

  • @katchapious314
    @katchapious314 Рік тому

    keep goin you help me alot

  • @gimoyy1421
    @gimoyy1421 9 місяців тому

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

  • @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

  • @dereckhernandezrivera3473
    @dereckhernandezrivera3473 5 місяців тому

    Why does it say UserInputService not a vaild service

  • @lucwer1982
    @lucwer1982 11 місяців тому

    Great tutorial

  • @FlawlessPixel
    @FlawlessPixel 9 місяців тому

    Its dealing more damage when im closer to player

  • @flapjackwastaken8500
    @flapjackwastaken8500 Рік тому

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

  • @GKLGames
    @GKLGames Рік тому

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

    • @Sfloon
      @Sfloon Рік тому

      fireball:destroy() when it registers its hit

  • @ghostlol-cw1xy
    @ghostlol-cw1xy Рік тому

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

  • @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 Рік тому

      look at the output look for errors

    • @MiguelEstevez-x6y
      @MiguelEstevez-x6y Рік тому

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

  • @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

  • @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

  • @Idek_Name
    @Idek_Name 4 місяці тому

    Is it possible to make it mobile compatible?

  • @DiaeYoutube
    @DiaeYoutube Рік тому

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

    • @Nxpiiz
      @Nxpiiz Рік тому

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

  • @CasperTheRamKnight
    @CasperTheRamKnight Рік тому +2

    could this be used as a tool?

  • @rtxheal777
    @rtxheal777 10 місяців тому

    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

  • @Temporary_name_cover
    @Temporary_name_cover Рік тому

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

    • @defnotmylo
      @defnotmylo Рік тому

      play an animation when player presses Q

    • @bajsapa3892
      @bajsapa3892 Рік тому

      @@defnotmylo your suggestion literally helps nobody

  • @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

  • @nottrollatron5d377
    @nottrollatron5d377 Рік тому

    Help my fireball isn’t cloning 😭😭😭

    • @Keketin
      @Keketin Рік тому

      Did you fix it? :)

  • @alm1044
    @alm1044 Рік тому

    Make a light beam attack like thanos’s power stone

  • @The_one_that_knocks
    @The_one_that_knocks 5 місяців тому

    can you make any shape?

  • @steliospapadopoulos5415
    @steliospapadopoulos5415 7 місяців тому

    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

  • @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

  • @forteplayz9826
    @forteplayz9826 8 місяців тому

    Cframe is not a valid member of Part

    • @klaid9028
      @klaid9028 6 місяців тому

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

  • @zabatv2324
    @zabatv2324 Рік тому

    Thank you😉😉

  • @J4x0n.39
    @J4x0n.39 Рік тому +6

    None of this worked

  • @veryraciest
    @veryraciest Рік тому

    i want to add animation please someone please help me

  • @MysticRiftsHandle
    @MysticRiftsHandle 5 місяців тому

    does it still work?

  • @epicgame5300
    @epicgame5300 Рік тому

    NICE

  • @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
    😊😊😊😊😊❤❤❤❤❤

    • @MiguelEstevez-x6y
      @MiguelEstevez-x6y Рік тому +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)

    • @MiguelEstevez-x6y
      @MiguelEstevez-x6y Рік тому

      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)

  • @gabyoutuberninja
    @gabyoutuberninja Рік тому

    it didint work but i keep it

  • @justthatguy01
    @justthatguy01 Рік тому

    IT DIDNT WORK FOR ME

  • @srydalis4009
    @srydalis4009 Рік тому

    Why Won't It Work?

  • @BeratPolat-wt4en
    @BeratPolat-wt4en 11 місяців тому

    My remote is unknown,why?

    • @crituus
      @crituus 10 місяців тому

      make sure to name it correctly eg w/ caps

  • @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 Рік тому

      its not
      @@eugene4287

  • @willyblud
    @willyblud Рік тому

    is it possible for mobile support for this

    • @crituus
      @crituus 10 місяців тому

      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

    • @willyblud
      @willyblud 10 місяців тому

      @@crituus thanks

  • @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

    • @erglwrgl
      @erglwrgl Рік тому +1

      how do you not know what that means

  • @boostergotboosted
    @boostergotboosted Рік тому

    Bruh it’s not work

  • @Isuckatdrawinghehe
    @Isuckatdrawinghehe Рік тому

    It didn’t work

  • @lxmon7220
    @lxmon7220 Рік тому

    would tween work

    • @yumgumrumdumb6189
      @yumgumrumdumb6189 Рік тому

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

  • @cryingrn4522
    @cryingrn4522 Рік тому

    doesnt work

  • @ShiningBlox
    @ShiningBlox 4 місяці тому

    doesnt work but my own fault

  • @zabatv2324
    @zabatv2324 Рік тому

    You are crazy bro hahahahaha

  • @Inspekard_bruh
    @Inspekard_bruh 9 місяців тому

    Nothing is the video worked

    • @frogs52
      @frogs52 5 місяців тому

      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

  • @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