Scripts used in video: pastebin.com/BJxm35pC To fix problem of attack being too early, do this: use function from this video kzbin.info/www/bejne/mpeshnZ-apx7gdk Or just copy it in this comment, I'll send it (I added 1 line to make it wait until tween finished) function tower.FaceTarget(newTower, target, duration) if target then local targetVector = Vector3.new(target.HumanoidRootPart.Position.X, newTower.PrimaryPart.Position.Y, target.HumanoidRootPart.Position.Z) local targetCFrame = CFrame.new(newTower.PrimaryPart.Position, targetVector) local tweenInfo = TweenInfo.new(duration, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false, 0) local faceTargetTween = TweenService:Create(newTower.PrimaryPart, tweenInfo, {CFrame = targetCFrame}) faceTargetTween:Play() faceTargetTween.Completed:Wait() end end AT findMobsInAngle function Before for i,v in pairs(workspace.Mobs:GetChildren()) do Add tower.FaceTarget(newTower, Mob, 0.02) this should fix problem (fixed it for me) If you still dont understand, I will make soon video on how to fix my mistake
@SaleMales4 ай бұрын
For summon system only things I left to make is selling auto-selling when summoned Trading And Im sure I forgot something
@larri13RBLX5 ай бұрын
Finally someone make this tutorial, I really needed this addon for my game, thanks so much!! (you earned 1 sub)
@SaleMales5 ай бұрын
To fix problem of attack being too early, do this: use function from this video kzbin.info/www/bejne/mpeshnZ-apx7gdk Or just copy it in this comment, I'll send it (I added 1 line to make it wait until tween finished) function tower.FaceTarget(newTower, target, duration) if target then local targetVector = Vector3.new(target.HumanoidRootPart.Position.X, newTower.PrimaryPart.Position.Y, target.HumanoidRootPart.Position.Z) local targetCFrame = CFrame.new(newTower.PrimaryPart.Position, targetVector) local tweenInfo = TweenInfo.new(duration, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false, 0) local faceTargetTween = TweenService:Create(newTower.PrimaryPart, tweenInfo, {CFrame = targetCFrame}) faceTargetTween:Play() faceTargetTween.Completed:Wait() end end AT findMobsInAngle function Before for i,v in pairs(workspace.Mobs:GetChildren()) do Add tower.FaceTarget(newTower, Mob, 0.02) this should fix problem (fixed it for me) If you still dont understand, I will make soon video on how to fix my mistake
@SaleMales5 ай бұрын
Also add TweenService variable if it doesnt exist for you
@SaleMales5 ай бұрын
I recorded video how to set up that aoe, if you dont understand, watch it
@SaleMales4 ай бұрын
Hi, I lost access to acc for a bit because I logged out of gmail and it had 2nd factor which I lost access to, lol. I almost done with summon system, I will post it when Im done
@SaleMales4 ай бұрын
For summon system only things I left to make is selling auto-selling when summoned Trading And Im sure I forgot something
@pirat_cola99985 ай бұрын
Nice video. Good luck with growing your channel
@SaleMales5 ай бұрын
thanks
@SaleMales4 ай бұрын
Hi, I lost access to acc for a bit because I logged out of gmail and it had 2nd factor which I lost access to, lol. I almost done with summon system, I will post it when Im done
@SaleMales4 ай бұрын
For summon system only things I left to make is selling auto-selling when summoned Trading And Im sure I forgot something
@โบจจิอีสเดอะเบส5 ай бұрын
thx for put script in your comment ❤️
@SaleMales5 ай бұрын
To fix problem of attack being too early, do this: use function from this video kzbin.info/www/bejne/mpeshnZ-apx7gdk Or just copy it in this comment, I'll send it (I added 1 line to make it wait until tween finished) function tower.FaceTarget(newTower, target, duration) if target then local targetVector = Vector3.new(target.HumanoidRootPart.Position.X, newTower.PrimaryPart.Position.Y, target.HumanoidRootPart.Position.Z) local targetCFrame = CFrame.new(newTower.PrimaryPart.Position, targetVector) local tweenInfo = TweenInfo.new(duration, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false, 0) local faceTargetTween = TweenService:Create(newTower.PrimaryPart, tweenInfo, {CFrame = targetCFrame}) faceTargetTween:Play() faceTargetTween.Completed:Wait() end end AT findMobsInAngle function Before for i,v in pairs(workspace.Mobs:GetChildren()) do Add tower.FaceTarget(newTower, Mob, 0.02) this should fix problem (fixed it for me) If you still dont understand, I will make soon video on how to fix my mistake
@SaleMales5 ай бұрын
Also add TweenService variable if it doesnt exist for you
@SaleMales5 ай бұрын
I recorded video how to set up that aoe, if you dont understand, watch it
@SaleMales4 ай бұрын
Hi, I lost access to acc for a bit because I logged out of gmail and it had 2nd factor which I lost access to, lol. I almost done with summon system, I will post it when Im done
@โบจจิอีสเดอะเบส4 ай бұрын
@@SaleMales btw i have question why my aoe script doesn't work i make everything like your video but humanoid error?
@atomiczilla96805 ай бұрын
You you earned a sub
@SaleMales5 ай бұрын
To fix problem of attack being too early, do this: use function from this video kzbin.info/www/bejne/mpeshnZ-apx7gdk Or just copy it in this comment, I'll send it (I added 1 line to make it wait until tween finished) function tower.FaceTarget(newTower, target, duration) if target then local targetVector = Vector3.new(target.HumanoidRootPart.Position.X, newTower.PrimaryPart.Position.Y, target.HumanoidRootPart.Position.Z) local targetCFrame = CFrame.new(newTower.PrimaryPart.Position, targetVector) local tweenInfo = TweenInfo.new(duration, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false, 0) local faceTargetTween = TweenService:Create(newTower.PrimaryPart, tweenInfo, {CFrame = targetCFrame}) faceTargetTween:Play() faceTargetTween.Completed:Wait() end end AT findMobsInAngle function Before for i,v in pairs(workspace.Mobs:GetChildren()) do Add tower.FaceTarget(newTower, Mob, 0.02) this should fix problem (fixed it for me) If you still dont understand, I will make soon video on how to fix my mistake
@SaleMales5 ай бұрын
Also add TweenService variable if it doesnt exist for you
@SaleMales5 ай бұрын
I recorded video how to set up that aoe, if you dont understand, watch it
@SaleMales4 ай бұрын
Hi, I lost access to acc for a bit because I logged out of gmail and it had 2nd factor which I lost access to, lol. I almost done with summon system, I will post it when Im done
@SaleMales4 ай бұрын
For summon system only things I left to make is selling auto-selling when summoned Trading And Im sure I forgot something
@larri13RBLX5 ай бұрын
Attempt to index nil with "CFrame" and Attempt to index nil with "Position", functions: updateAngleLines
@SaleMales5 ай бұрын
I'll test tomorrow and make video on how to set it up
@larri13RBLX5 ай бұрын
@@SaleMales ok, ty
@SaleMales5 ай бұрын
@@larri13RBLX back from exam, I will record vid now
@SaleMales5 ай бұрын
I recorded video how to set up that aoe, if you dont understand, watch it
@larri13RBLX5 ай бұрын
@@SaleMalesok, thanks so much
@RUDRANSHShivanshMishra3 ай бұрын
When i upgrade the tower to do AOE it just stops attacking and doesn't detect the waypoints in workspace anymore
@SaleMales3 ай бұрын
its not my addon problem
@RUDRANSHShivanshMishra3 ай бұрын
idk what that means but the issue is that from what i know is that when the unit is able to do AOE or earns the AOE property the the AOE Targeting doesn't work anymore then, here is my script the part of my script with the error: function tower.AOEFindTargets(newtower, player) local mobsinangel = tower.findMobsInAngle(newtower) print(mobsinangel) if #mobsinangel > 0 then task.wait(0.1) tower.AOEAttack(newtower, mobsinangel, player) end task.wait(0.1) if newtower and newtower.Parent then tower.AOEFindTargets(newtower, player) end end function tower.findMobsInAngle(newTower) local mobs = {} -- Table to store mobs within angle range local config = newTower:FindFirstChild("Config") if not config then return end --print("Launched function find mobs in angle") for i,v in pairs(workspace.Mobd:GetChildren()) do if tower.FindTargetAOE(newTower, config.Range.Value, config.TargetMode.Value, v) then --print("found target") local Towerangle = config:FindFirstChild("Angle") local angleThreshold = math.rad(Towerangle.Value) local direction = (v.HumanoidRootPart.Position - newTower.HumanoidRootPart.Position).unit local angle = math.acos(direction:Dot(newTower.HumanoidRootPart.CFrame.lookVector)) -- Calculate angle in radians if angle
@RUDRANSHShivanshMishra3 ай бұрын
Actually nvm i fixed it for level 1 but when you upgrade him the issue just comes back and it says in the output: " Config not found for tower: Tv Man (x58) - Client - gamecontroller:116 "
@therandomgamermonkey62595 ай бұрын
TYSM
@SaleMales5 ай бұрын
I recorded video how to set up that aoe, if you dont understand, watch it
@SaleMales4 ай бұрын
Hi, I lost access to acc for a bit because I logged out of gmail and it had 2nd factor which I lost access to, lol. I almost done with summon system, I will post it when Im done
@SaleMales4 ай бұрын
For summon system only things I left to make is selling auto-selling when summoned Trading And Im sure I forgot something
@apfilmslego75675 ай бұрын
Idk why but the line for showing the range are not working
@SaleMales4 ай бұрын
Hi, I lost access to acc for a bit because I logged out of gmail and it had 2nd factor which I lost access to, lol. I almost done with summon system, I will post it when Im done
@SaleMales4 ай бұрын
For summon system only things I left to make is selling auto-selling when summoned Trading And Im sure I forgot something
@ihunbenz59855 ай бұрын
when i did it all i cannot place my tower can anyone help me please?
@ihunbenz59855 ай бұрын
all the script is work but i cannot place tower
@SaleMales4 ай бұрын
Hi, I lost access to acc for a bit because I logged out of gmail and it had 2nd factor which I lost access to, lol. I almost done with summon system, I will post it when Im done
@SaleMales4 ай бұрын
For summon system only things I left to make is selling auto-selling when summoned Trading And Im sure I forgot something