hello! im making a boss fight in my game and 2 of the attacks [which are tentacle attacks which are meshes] are not damaging the player. the damage script works perfectly fine for the other attacks but for these attacks its not working! someone please help!
here is where the attacks are located in the boss fight script :
local function TentacleSmackAttack(PlayerSelected)
local Tentacle = game.ReplicatedStorage.BossFightAttacks.TentacleSlam:Clone()
game:GetService('RunService').Stepped:Wait()
CanAttack = false
Tentacle.Parent = workspace
Tentacle.Tentacle.Orientation = PlayerSelected.Character.Head.Orientation
game:GetService("TweenService"):Create(Tentacle.Tentacle, TweenInfo.new(2), {Position = Tentacle.TentacleAppearPos.Position}):Play()
wait(2.1)
local Anim = Tentacle.AnimationController.Animator:LoadAnimation(script.SlamAnim)
Anim:Play()
Anim.Ended:Wait()
print("Attack Finished")
wait(1)
game:GetService("TweenService"):Create(Tentacle.Tentacle, TweenInfo.new(1), {Position = Tentacle.TentacleDissapearPos.Position}):Play()
wait(1.1)
CanAttack = true
Tentacle:Destroy()
end
local function TentacleSpinAttack(PlayerSelected)
local Tentacle = game.ReplicatedStorage.BossFightAttacks.TentacleSpin:Clone()
game:GetService('RunService').Stepped:Wait()
CanAttack = false
Tentacle.Parent = workspace
Tentacle.Tentacle.CFrame = Tentacle.Tentacle.CFrame * rotation
game:GetService("TweenService"):Create(Tentacle.Tentacle, TweenInfo.new(2), {Position = Tentacle.TentacleAppearPos.Position}):Play()
wait(2.1)
local Anim = Tentacle.AnimationController.Animator:LoadAnimation(script.SpinAnim)
Anim:Play()
Anim.Ended:Wait()
print("Attack Finished")
wait(1)
game:GetService("TweenService"):Create(Tentacle.Tentacle, TweenInfo.new(1), {Position = Tentacle.TentacleDissapearPos.Position}):Play()
wait(1.1)
CanAttack = true
Tentacle:Destroy()
end
if someone can help me i will be really happy! also i think its not playing cuz of the animation the tentacles play… but im not sure!