I’m trying to play a sound but i keep getting this error "attempt to index nil with ‘Blood1’ "
local Equip = false
local Back = Vector3.new(0,0,-1)
local Up = Vector3.new(0,-10,0)
script.Parent.Attack.OnServerEvent:Connect(function(k,characteer)
local tool = script.Parent.Handle
local RayParams = RaycastParams.new()
RayParams.FilterType = Enum.RaycastFilterType.Blacklist
RayParams.FilterDescendantsInstances = {k.Character,tool}
local Aray = workspace:Raycast(k.Character.HumanoidRootPart.Position,k.Character.HumanoidRootPart.CFrame.LookVector*10,RayParams)
if Aray and Aray.Instance.Name == "HumanoidRootPart" then
Aray.Instance.Parent.Humanoid.Health = Aray.Instance.Parent.Humanoid.Health-100
print("Torso")
elseif Aray and Aray.Instance.Name == "Left Arm" then
local Clone = Aray.Instance.Parent["Left Arm"]:Clone()
Aray.Instance.Parent.Humanoid.Health = Aray.Instance.Parent.Humanoid.Health-25
Clone.Name = "Left Arm2"
Clone.Parent = Aray.Instance.Parent
local Bv = Instance.new("BodyVelocity",Aray.Instance.Parent["Left Arm2"])
Bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
Bv.Velocity = k.Character.HumanoidRootPart.CFrame.LookVector* 75 + Back + Up
game.Debris:AddItem(Bv,.1)
Aray.Instance.Parent["Left Arm"]:Destroy()
Aray.Instance.Parent["Blood1"]:Play()
print("Left arm")
end
end)