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

script that a npc model can only go through something?

Asked by 6 years ago

****i know this script turn in a script here:

Ontouched:FindHumanoid"Drooling Zombie"

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

Well first off that's not even a script, but that's okay you're a beginner! Touched Wiki Article

This may work I didn't really test it

script.Parent.Touched:connect(function(hit)
    local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
    if plr.Name == "Drooling Zombie" then
        --Code here
    end
end)
0
I think he's trying to find the Humanoid of an NPC called "Drooling Zombie", not a Player model. Mayk728 855 — 6y
Ad

Answer this question