function bigBRAIN(head)
local boy = head.Parent:FindFirstChild("Humanoid")
if (boy ~= false) then
boy.Health = 0
end
end
script.Parent.Activated:Connect(bigBRAIN)
Error showing up
So I tried making a tool for a player that’ll kill them if they use it, but nothing seems to be happening. Any help?
local Tool = script.Parent
local Players = game:GetService('Players')
function bigBRAIN()
local Player = Players:GetPlayerFromCharacter(Tool.Parent)
if Player then
local Character = Player.Character or Player.CharacterAdded:Wait()
Character:BreakJoints()
end
end
Tool.Activated:Connect(bigBRAIN)