If you are watching this, and didnt watch part 1 and 2, go watch it!! hitbox script for lazy ones: canhit = true local mob1 tower = _G.Tower if tower.Config:FindFirstChild("Type").Value == "Throw" then script.Parent.Touched:Connect(function(hit) if canhit == true then local mob = hit.Parent if hit.Parent.Parent == workspace.Mobs then mob1 = mob mob:FindFirstChild("Humanoid").WalkSpeed = 2 if not mob:FindFirstChild("Humanoid") then return end end end end)
script.Parent.TouchEnded:Connect(function(hit) local mob = hit.Parent if hit.Parent.Parent == workspace.Mobs then canhit = false mob:FindFirstChild("Humanoid").WalkSpeed = mob.NormalSpd.Value if not mob:FindFirstChild("Humanoid") then return end end end)
if canhit == true then while wait(tower.Config.HitCooldown.Value) do mob1.Humanoid.Health -= tower.Config.HitDamage.Value if not mob1:FindFirstChild("Humanoid") then return end end end end ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- remember thats touched and touchended are completely optional!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! so if you dont want that part of lower walkspeed, copy this: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- canhit = true local mob1 tower = _G.Tower if tower.Config:FindFirstChild("Type").Value == "Throw" then script.Parent.Touched:Connect(function(hit) if canhit == true then local mob = hit.Parent if hit.Parent.Parent == workspace.Mobs then mob1 = mob if not mob:FindFirstChild("Humanoid") then return end end end end)
script.Parent.TouchEnded:Connect(function(hit) local mob = hit.Parent if hit.Parent.Parent == workspace.Mobs then canhit = false if not mob:FindFirstChild("Humanoid") then return end end end)
if canhit == true then while wait(tower.Config.HitCooldown.Value) do mob1.Humanoid.Health -= tower.Config.HitDamage.Value if not mob1:FindFirstChild("Humanoid") then return end end end end
It's unrealistically cool. The gnome system is alive. I'm waiting for a new video =)
What about levels and ranks for the levels like you get the commander rank at level 25 and it will be above the name
If you are watching this, and didnt watch part 1 and 2, go watch it!!
hitbox script for lazy ones:
canhit = true
local mob1
tower = _G.Tower
if tower.Config:FindFirstChild("Type").Value == "Throw" then
script.Parent.Touched:Connect(function(hit)
if canhit == true then
local mob = hit.Parent
if hit.Parent.Parent == workspace.Mobs then
mob1 = mob
mob:FindFirstChild("Humanoid").WalkSpeed = 2
if not mob:FindFirstChild("Humanoid") then
return end
end
end
end)
script.Parent.TouchEnded:Connect(function(hit)
local mob = hit.Parent
if hit.Parent.Parent == workspace.Mobs then
canhit = false
mob:FindFirstChild("Humanoid").WalkSpeed = mob.NormalSpd.Value
if not mob:FindFirstChild("Humanoid") then
return end
end
end)
if canhit == true then
while wait(tower.Config.HitCooldown.Value) do
mob1.Humanoid.Health -= tower.Config.HitDamage.Value
if not mob1:FindFirstChild("Humanoid") then
return end
end
end
end
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
remember thats touched and touchended are completely optional!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
so if you dont want that part of lower walkspeed, copy this:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
canhit = true
local mob1
tower = _G.Tower
if tower.Config:FindFirstChild("Type").Value == "Throw" then
script.Parent.Touched:Connect(function(hit)
if canhit == true then
local mob = hit.Parent
if hit.Parent.Parent == workspace.Mobs then
mob1 = mob
if not mob:FindFirstChild("Humanoid") then
return end
end
end
end)
script.Parent.TouchEnded:Connect(function(hit)
local mob = hit.Parent
if hit.Parent.Parent == workspace.Mobs then
canhit = false
if not mob:FindFirstChild("Humanoid") then
return end
end
end)
if canhit == true then
while wait(tower.Config.HitCooldown.Value) do
mob1.Humanoid.Health -= tower.Config.HitDamage.Value
if not mob1:FindFirstChild("Humanoid") then
return end
end
end
end
the posion in tds dosent make the zombies slower
yeah, ik i just made it like that to be "more creative"
@@StudiosCodeno
hey, how did you fix the mob and tower collision?
I didnt fix yet, but ill try
@@StudiosCode if you do, can you do a tutorial?
@@gamer-j7l9vfor sure!