Not placing tower but there is no errors

It does not damage you it damages the castle.

no i mean tower range
ik how tower defense games go lol

25 I think cause the map is big.

add a cylinder at the tower’s feet

rotate it and resize it so that it is 25 studs in diameter

duplicate the cylinder and resize it so that it’s very tall, the hitbox
make the hitbox invis
and simple touch detection script inside it:

local firerate = 1 --firerate
local damage = 10 --damage
local cooldown = false
local currentcooldown = firerate

script.Parent.Touched:Connect(function(hit)
if not cooldown then
if hit and hit.Parent:FindFirstChild("Humanoid") and not game.Players:FindFirstChild[hit.Parent.Name] then
pathtotool:Activate()
hit.Parent.Humanoid.Health -= damage
currentcooldown = 1
cooldown = true
end
end
end)

while cooldown do
task.wait(1)
currentcooldown -= 1
if currentcooldown == 0 then
cooldown = false
end
end

I am just going to do a sword script. Sorry If I wasted your time.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.