How to make a Fireball Tool ┃ Roblox Studio

Поделиться
HTML-код
  • Опубликовано: 6 ноя 2024

Комментарии • 21

  • @KidKMo
    @KidKMo  2 месяца назад

    By the way I forgot to delete fireball:Destroy() before the wait. Make sure you delete that!

  • @KidKMo
    @KidKMo  10 дней назад

    What tutorial should I make next?

  • @thedoge7853
    @thedoge7853 11 дней назад +1

    [Feedback]
    Can this work on R6?
    The fireball works by moving but it does not take damage is there any way to fix that error?
    Its weird because the damage works when its anchored instead of unanchored.

    • @KidKMo
      @KidKMo  10 дней назад

      yes it should work on r6 if your animations are done in r6. I’ve done this before using both.

    • @KidKMo
      @KidKMo  10 дней назад

      send me your code so I can find the error. Also sorry for the late reply.

    • @thedoge7853
      @thedoge7853 7 дней назад

      @@KidKMo Its okay. So I modified the code to my games so it can work as ability hitting 80 streak
      Script:
      local Event = script.Parent.AbilityEvent
      local Speed = 50
      local Damage = 10
      local TweenService = game:GetService("TweenService")
      Event.OnServerEvent:Connect(function(Player)
      local Character = Player.Character
      local Fireball = script.Parent.Abilities.Fireball:Clone()
      Fireball.Anchored = false
      Fireball.Parent = game.Workspace
      Fireball.Position = Character.HumanoidRootPart.Position + Character.HumanoidRootPart.CFrame.LookVector
      local BodyVelocity = Instance.new("BodyVelocity")
      BodyVelocity.Parent = Fireball
      BodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
      BodyVelocity.Velocity = Character.HumanoidRootPart.CFrame.LookVector * Speed
      local Cooldown = false
      Fireball.Touched:Connect(function(Hit)
      if Hit.Parent:FindFirstChild("Humanoid") ~= Character.Humanoid then
      Fireball.HitSound:Play()
      Hit.Parent:FindFirstChild("Humanoid").Health -= Damage
      task.wait(0.1)
      Fireball:Destroy()
      end
      end)
      task.wait(3.5)
      TweenService:Create(Fireball, TweenInfo.new(0.5), {Transparency = 1}):Play()
      task.wait(0.5)
      Fireball:Destroy()
      end)

    • @KidKMo
      @KidKMo  7 дней назад

      @@thedoge7853are there any errors in the output. Also what do you mean by 80 streak?

    • @KidKMo
      @KidKMo  7 дней назад

      if there are no errors check if handle required is set to false

  • @ImNotOymaster
    @ImNotOymaster Месяц назад +1

    Plsss help

    • @KidKMo
      @KidKMo  Месяц назад +1

      @@ImNotOymaster show me your script

    • @KidKMo
      @KidKMo  Месяц назад +1

      And also what error it is saying in the output

    • @ImNotOymaster
      @ImNotOymaster Месяц назад +1

      ​@@KidKMo It said "attempt to index nil with health" how can I fix this?

    • @KidKMo
      @KidKMo  Месяц назад +1

      @@ImNotOymaster probably spelled health wrong just check that capital h also

    • @ImNotOymaster
      @ImNotOymaster Месяц назад +1

      ​@@KidKMo ok I will check it tomorrow