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

How do you make an identifier without changing model name?

Im trying to make an enemy for my RPG but im having a hardtime setting up the damage i want to make it so that it can decipher whats a player and whats an enemy and whats a Player so that the sword doesnt do damage to any humanoid

1 comment

0

I'm not really sure what you're asking here, but most people call 'enemy' Humanoids 'enemy' or something similar.

1 answer

function isPlayer(character) --character model
	if game.Players:GetPlayerFromCharacter(character) then
		return true
	end
	return false
end

That should be helpful to you

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