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

script that a npc model can only go through something?

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

Ontouched:FindHumanoid"Drooling Zombie"

1 answer

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)

1 comment

0

I think he's trying to find the Humanoid of an NPC called "Drooling Zombie", not a Player model.

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