Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you make an identifier without changing model name?

Asked by 8 years ago

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

0
I'm not really sure what you're asking here, but most people call 'enemy' Humanoids 'enemy' or something similar. adark 5487 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago
function isPlayer(character) --character model
    if game.Players:GetPlayerFromCharacter(character) then
        return true
    end
    return false
end

That should be helpful to you

Ad

Answer this question