I have an error that says
expected identifier, got ':'
can anyone check why??
This is a Script, not a local script.
-- Made By RainbowBeastYT
local tool = script.Parent
local speedboost =1.25
local handle = tool:WaitForChild("Handle")
local event = tool:WaitForChild("RemoteEvent")
local damage = 100
local lastclick = tick()
local equipped = true
local character = tool.Parent
local player = game.Players:GetPlayerFromCharacter(character)
local humanoid = character:FindFirstChild("humanoid")
local targethumanoid:TakeDamage(damage)
tool.Equipped:Connect(function()
lastclick = tick()
if humanoid then
humanoid.Walkspeed = humanoid.Walkspeed * speedboost
else
character = nil
end
end)
tool.Unequipped:Connect(function()
if humanoid then
humanoid.Walkspeed = humanoid.Walkspeed / speedboost
end
character = nil
humanoid = nil
end)
handle.Touched:Connect(function(hit)
if equipped and character and humanoid and humanoid.health > 0 and hit and not hit:isDescendantOf(character) then
local targethumanoid = hit.Parent:FindFirstChild("Humanoid")
if targethumanoid and targethumanoid.Health > 0 and not hithumanoid(targethumanoid) then
local hithumanoid(targethumanoid) = true
targethumanoid:TakeDamage(damage)
end
end
end)
tool.Activated:Connect(function()
local clickdelta = tick() - lastclick
if clickdelta > 1 then
lastclick = tick()
local hithumanoid = {}
if clickdelta < slashtime * combowindow then
if player then
end
end
end)
Can anyone please help!

5 comments
There's no script.
now theer is
I post it by accident, now I finish the post
Which line does it error at?
wait about line 18 there might be a problem there?