RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"the npcs are treating it as a collision"
-- server script local part = script.Parent local function onPartTouched(otherPart) local humanoid = otherPart.Parent:FindFirstChild('Humanoid') if humanoid then if game.Players:GetPlayerFromCharacter(otherPart.Parent) then -- This is a player part.CanCollide = true else -- This is an NPC part.CanCollide = true end end end part.Touched:Connect(onPartTouched)