whatever works for you i guess
169th post already? sheesh
that was fast
and it’s 9 at night and we started around 7
ye lol
sdafafdsafdasfas
im literally on the opposite side of the world as you
its 9am here
though im on vacation
Well, you just woke up.
dsfsdfsdfds
Should I just make a sword?
iasjdiasokjdisoa
i guess so?
is that gonna be ur only weapon
from my perspective that kinda looks like a beach so an oar?
We already have a shovel for a weapon. We just need to make the animation work and the damage work,
Here is the animation script:
local anim = 1
local anims = #script:GetChildren()
local Tool = script.Parent
local ready = true
Tool.Activated:Connect(function()
local Character = Tool.Parent
if Character then
local Humanoid = Character:FindFirstChildWhichIsA("Humanoid")
if Humanoid then
local LoadedAnim = nil
anim += 1
if anim > anims then anim = 1 end
LoadedAnim = Humanoid.Animator:LoadAnimation(script:GetChildren()[anim])
if LoadedAnim and ready == true then
LoadedAnim:Play()
ready = false
wait(.54)
script.Parent.SwingSound:Play()
wait(.2)
ready = true
end
end
end
end)
do you have an enemy script yet
Yes, 4 in fact.
dddddddddddddddddd
and range?
fhvuvhruhvdbvhdvrhbf
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.