Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How in code, would you create a function that calls, and tells the computer to anti tie?

How in code, would you create a function that is called, on death and inside the function, it plays "No ties".

1 answer

I have no idea what you mean by "plays No ties" but to call a function on death you'll want to do something like this-

function Died(char)
	print(char.Name .. " died.")
	-- play "No ties."?
end

Game:GetService("Players").PlayerAdded:connect(function(plr)
	plr.CharacterAdded:connect(function(char)
		char:WaitForChild("Humanoid").Died:connect(function()
			Died(char)
		end)
	end)
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.