I think it's a problem with my RemoteEvent script, I'm not really sure but here are the scripts.
LocalScript:
local tool = script.Parent
tool.Equipped:connect(function(mouse)
mouse.Button1Down:connect(function()
tool.Kill:FireServer()
end)
end)
Script:
script.Parent.Kill.OnServerEvent:Connect(function()
script.Parent.union.Touched:Connect(function(hit)
if script.Parent.CanDamage.Value == true and hit.Parent:FindFirstChild("Humanoid") and hit.Parent:FindFirstChild("Creator") == nil then
local bloodarea = {"UpperTorso", "LowerTorso", "Head"}
local bloodface = {"Top", "Bottom", "Front", "Back", "Left", "Right"}
local chosenarea = bloodarea[math.random(1,#bloodarea)]
local chosenface = bloodface[math.random(1,#bloodface)]
local blood = game.ReplicatedStorage.Blood:Clone()
local creator = Instance.new("IntValue")
creator.Name = "Creator"
creator.Parent = script.Parent.Parent
blood.EmissionDirection = chosenface
blood.Parent = hit.Parent[chosenarea]
script.Parent.CanDamage.Value = false
hit.Parent.Humanoid:TakeDamage(100)
end
end)
end)

3 comments
Use connect; Connect is deprecated. Also, if you want your sword to work with mobile as well, you should probably use tool.Activated on line 4 of the LocalScript.
Well, not just mobile. On all platforms.
That didn't solve my problem, thanks though.