Gnomecode Tower Defense Addons (Toilet Tower Defense like AOE, Aka "Angle" AOE, Aka Cone AOE)

  Рет қаралды 2,888

SaleMales roblox

SaleMales roblox

Күн бұрын

Пікірлер: 51
@SaleMales
@SaleMales 5 ай бұрын
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
@SaleMales
@SaleMales 4 ай бұрын
For summon system only things I left to make is selling auto-selling when summoned Trading And Im sure I forgot something
@larri13RBLX
@larri13RBLX 5 ай бұрын
Finally someone make this tutorial, I really needed this addon for my game, thanks so much!! (you earned 1 sub)
@SaleMales
@SaleMales 5 ай бұрын
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
@SaleMales
@SaleMales 5 ай бұрын
Also add TweenService variable if it doesnt exist for you
@SaleMales
@SaleMales 5 ай бұрын
I recorded video how to set up that aoe, if you dont understand, watch it
@SaleMales
@SaleMales 4 ай бұрын
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
@SaleMales
@SaleMales 4 ай бұрын
For summon system only things I left to make is selling auto-selling when summoned Trading And Im sure I forgot something
@pirat_cola9998
@pirat_cola9998 5 ай бұрын
Nice video. Good luck with growing your channel
@SaleMales
@SaleMales 5 ай бұрын
thanks
@SaleMales
@SaleMales 4 ай бұрын
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
@SaleMales
@SaleMales 4 ай бұрын
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 ❤️
@SaleMales
@SaleMales 5 ай бұрын
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
@SaleMales
@SaleMales 5 ай бұрын
Also add TweenService variable if it doesnt exist for you
@SaleMales
@SaleMales 5 ай бұрын
I recorded video how to set up that aoe, if you dont understand, watch it
@SaleMales
@SaleMales 4 ай бұрын
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?
@atomiczilla9680
@atomiczilla9680 5 ай бұрын
You you earned a sub
@SaleMales
@SaleMales 5 ай бұрын
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
@SaleMales
@SaleMales 5 ай бұрын
Also add TweenService variable if it doesnt exist for you
@SaleMales
@SaleMales 5 ай бұрын
I recorded video how to set up that aoe, if you dont understand, watch it
@SaleMales
@SaleMales 4 ай бұрын
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
@SaleMales
@SaleMales 4 ай бұрын
For summon system only things I left to make is selling auto-selling when summoned Trading And Im sure I forgot something
@larri13RBLX
@larri13RBLX 5 ай бұрын
Attempt to index nil with "CFrame" and Attempt to index nil with "Position", functions: updateAngleLines
@SaleMales
@SaleMales 5 ай бұрын
I'll test tomorrow and make video on how to set it up
@larri13RBLX
@larri13RBLX 5 ай бұрын
@@SaleMales ok, ty
@SaleMales
@SaleMales 5 ай бұрын
@@larri13RBLX back from exam, I will record vid now
@SaleMales
@SaleMales 5 ай бұрын
I recorded video how to set up that aoe, if you dont understand, watch it
@larri13RBLX
@larri13RBLX 5 ай бұрын
​@@SaleMalesok, thanks so much
@RUDRANSHShivanshMishra
@RUDRANSHShivanshMishra 3 ай бұрын
When i upgrade the tower to do AOE it just stops attacking and doesn't detect the waypoints in workspace anymore
@SaleMales
@SaleMales 3 ай бұрын
its not my addon problem
@RUDRANSHShivanshMishra
@RUDRANSHShivanshMishra 3 ай бұрын
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
@RUDRANSHShivanshMishra
@RUDRANSHShivanshMishra 3 ай бұрын
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 "
@therandomgamermonkey6259
@therandomgamermonkey6259 5 ай бұрын
TYSM
@SaleMales
@SaleMales 5 ай бұрын
I recorded video how to set up that aoe, if you dont understand, watch it
@SaleMales
@SaleMales 4 ай бұрын
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
@SaleMales
@SaleMales 4 ай бұрын
For summon system only things I left to make is selling auto-selling when summoned Trading And Im sure I forgot something
@apfilmslego7567
@apfilmslego7567 5 ай бұрын
Idk why but the line for showing the range are not working
@SaleMales
@SaleMales 4 ай бұрын
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
@SaleMales
@SaleMales 4 ай бұрын
For summon system only things I left to make is selling auto-selling when summoned Trading And Im sure I forgot something
@ihunbenz5985
@ihunbenz5985 5 ай бұрын
when i did it all i cannot place my tower can anyone help me please?
@ihunbenz5985
@ihunbenz5985 5 ай бұрын
all the script is work but i cannot place tower
@SaleMales
@SaleMales 4 ай бұрын
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
@SaleMales
@SaleMales 4 ай бұрын
For summon system only things I left to make is selling auto-selling when summoned Trading And Im sure I forgot something
This Roblox Extension Has Some Hidden Tricks...
15:24
No Text To Speech
Рет қаралды 659 М.
GODLY vs EXCLUSIVE In Toilet Tower Defense
14:24
Sunny and Melon
Рет қаралды 150 М.
How it feels when u walk through first class
00:52
Adam W
Рет қаралды 22 МЛН
Когда отец одевает ребёнка @JaySharon
00:16
История одного вокалиста
Рет қаралды 14 МЛН
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 1,4 МЛН
Somebody emailed me a trojan virus
14:06
Bog
Рет қаралды 910 М.
Every Level of Civilization Explained
15:19
The Paint Explainer
Рет қаралды 895 М.
How to make a better naming and level system | Gnomecode TD Addon #1
3:52
This YouTuber Faked 100 Records, So I Actually Beat Them
22:25
Yeah Jaron
Рет қаралды 9 МЛН
PRANK On School Teacher GOES TOO FAR..
15:38
Foltyn Reacts
Рет қаралды 3,8 МЛН
He Spent 377 Days Making Fortnite in Minecraft.
17:02
More SypherPK
Рет қаралды 1,4 МЛН
The Scummiest Game On Roblox
6:45
CORSO
Рет қаралды 102 М.
Возможно ли Пройти Майнкрафт в Суперплоском Мире?
19:07
I Spent a Month in Roblox Tower Defense Simulator
43:38
propellars
Рет қаралды 1,4 МЛН
How it feels when u walk through first class
00:52
Adam W
Рет қаралды 22 МЛН