this error happens
Incomplete statement?
workspace.RAKEREMASTER.Monster:TakeDamage(math.random(4, 6) * headshot)
local folder = workspace.RAKEREMASTER:WaitForChild("StunAnims")
local animationrandom = folder["Hurt"..math.random(1, 2)]
local loadanim = workspace.RAKEREMASTER.Monster:LoadAnimation(animationrandom)
loadanim:Play()
Can you show us the entire code?
`local tool = script.Parent
local character
local equipAnim
local debounce = false
tool.Equipped:Connect(function()
--if workspace.PowerOutage.Value then
-- tool.Stun2.Color = Color3.fromRGB(0, 0, 0)
--else
tool.Stun2.Color = Color3.fromRGB(248, 248, 248)
--end
character = tool.Parent
equipAnim = character.Humanoid:LoadAnimation(tool.Idle)
equipAnim:Play()
end)
tool.Unequipped:Connect(function()
equipAnim:Stop()
end)
tool.Activated:Connect(function()
if not debounce then
tool.CamShake:FireClient(game.Players:FindFirstChild(tool.Parent.Name))
debounce = true
local swingAnim = character.Humanoid:LoadAnimation(tool.Swing)
swingAnim:Play()
local hitA = false
--character.Stamina.Value -= 20.83
tool.Handle.Slash:Play()
local chance = math.random(1, 3)
local connection = tool.DamageBox.Touched:Connect(function(hit)
--if hit.Name ~= "ObservationHitbox"then
if not hitA then
hitA = true
tool.Handle.Deflect.PlaybackSpeed = (1 + tonumber("0."..math.random(3, 6)))
tool.Handle.Deflect:Play()
if workspace:FindFirstChild("RAKEREMASTER") then
local headshot = 1
if hit:IsDescendantOf(workspace.RAKEREMASTER.Head) then
workspace.RAKEREMASTER.Headshot.Value = true
headshot = 3
end
if hit:IsDescendantOf(workspace.RAKEREMASTER) then
print("A")
--if workspace.RAKEREMASTER.Ragdoll.Value then
-- workspace.RAKEREMASTER.RagdollTimer.Value += 1.5
--else
--if chance == 1 then
-- workspace.RAKEREMASTER.RagdollTimer.Value += 1
--else
-- workspace.RAKEREMASTER.RagdollTimer.Value += 1.5
--end
end
workspace.RAKEREMASTER.Monster:TakeDamage(math.random(4, 6) * headshot)
local folder = workspace.RAKEREMASTER:WaitForChild("StunAnims")
local animationrandom = folder["Hurt"..math.random(1, 2)]
local loadanim = workspace.RAKEREMASTER.Monster:LoadAnimation(animationrandom)
loadanim:Play()
end
end
-- end
--end
end)
wait(0.65)
connection:Disconnect()
wait(0.4)
debounce = false
end
end)
`
Try
tool:WaitForChild("CamShake"):FireClient(game.Players:FindFirstChild(tool.Parent.Name))
Sorry that’s not the issue, i got a wrong photo