[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 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)
By the way I forgot to delete fireball:Destroy() before the wait. Make sure you delete that!
What tutorial should I make next?
[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.
yes it should work on r6 if your animations are done in r6. I’ve done this before using both.
send me your code so I can find the error. Also sorry for the late reply.
@@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)
@@thedoge7853are there any errors in the output. Also what do you mean by 80 streak?
if there are no errors check if handle required is set to false
Plsss help
@@ImNotOymaster show me your script
And also what error it is saying in the output
@@KidKMo It said "attempt to index nil with health" how can I fix this?
@@ImNotOymaster probably spelled health wrong just check that capital h also
@@KidKMo ok I will check it tomorrow