#[RESOLVED]

1 messages · Page 1 of 1 (latest)

pseudo finch
#

i tried multiple things but either one of them is broke or something or it just lets them in for some reason and yes i tried googling and stuff i didnt find nun

#

im trying to figure out how to make like a blacklist

#

for npcs

dry salmon
#

show pathfinding code

pseudo finch
#

oh sec

#

its from an old game im trying to recover

#

i noticed theres an ignore list but i cant figure out how to add stuff to there

dry salmon
#

man im surely gonna have a hard time reading with no indents 💀

pseudo finch
#

ikr

#

i can ask ai to clean it if u want

dry salmon
#

oks

pseudo finch
#

gimme 5 secs

#

here

#

should be better

#

really appreciate that ur gonna help me

#

i hope so atleast

fast meteor
# pseudo finch

Did you write this code to create a safezone and kill any NPC other than the player who enters there?

pseudo finch
#

it overall finds people and kills them

#

but it excludes a merchant npc

fast meteor
pseudo finch
#

so i want a safezone to filter the enemy from players and enable collision for the enemy

#

or atleast

#

ignore them inside

#

the safezone

pseudo finch
#

i see ill try

#

it makes the rake stand still

#

line 3 attempted to index nil ith find firstchil

#

d

fast meteor
pseudo finch
#

explorer?

fast meteor
pseudo finch
#

oh u didnt add local killer and killer script

fast meteor
#

i just saw

pseudo finch
#

dw

tight tinselBOT
#

studio** You are now Level 12! **studio

pseudo finch
#

lez go

#

so he still isnt moving

#

may i know what u changed

#

u removed lots of stuff

fast meteor
tight tinselBOT
#

studio** You are now Level 1! **studio

fast meteor
#

If its will work

pseudo finch
#

da hail is that

fast meteor
pseudo finch
#

i can se

#

e

#

hes not moving again

#

💀

fast meteor
pseudo finch
#

ok sec

#

what do u want to see like the whole entire thing the npc

#

workspace

fast meteor
#

is good

pseudo finch
#

thats all i have

#

the npc is in replicated storage

fast meteor
#

where is script?

#

In the explorer

pseudo finch
#

no its in the npv

#

npc

fast meteor
#

then

pseudo finch
fast meteor
pseudo finch
#

mainscript

fast meteor
#

and wait

pseudo finch
#

yes

fast meteor
#

oh

pseudo finch
#

it stood still

fast meteor
#

or errorcode

#

If there is

pseudo finch
#

thats it

fast meteor
pseudo finch
#

yes

#

but its a model

fast meteor
#

ok

#

single part or?

pseudo finch
#

multiple + models in it

fast meteor
pseudo finch
fast meteor
#

childers

pseudo finch
#

parts are the main safezone

#

text model is jus some text

#

3d text

fast meteor
# pseudo finch

There are 2 parts3. And it should be whatever you say it is worth in the part.

pseudo finch
#

oh mb

#

there fixed now theres part 4

fast meteor
pseudo finch
#

what

fast meteor
#

which one

pseudo finch
#

part 1-4 is the walls part is the roof

#

i want parts 1-4 to not let rake in

fast meteor
#

now*

#

Make a folder

#

In the safezone

pseudo finch
#

ok

fast meteor
#

and you now

pseudo finch
#

wha t do i name it

fast meteor
#

know*

fast meteor
#

Or somethng

pseudo finch
#

kkk

#

waht next

fast meteor
tight tinselBOT
#

studio** You are now Level 2! **studio

fast meteor
#

In the mainscript

pseudo finch
#

u again forgot the main stuff

fast meteor
#

what

#

oh ok

#

again wrong

fast meteor
# pseudo finch u again forgot the main stuff

local Safezone = workspace:WaitForChild("Safezone")
local KillerHumanoidRootPart = Killer:FindFirstChild("HumanoidRootPart")

local function DisableCollisionInSafezone()
if KillerHumanoidRootPart and Safezone then
local distance = (KillerHumanoidRootPart.Position - Safezone.Position).Magnitude
if distance <= Safezone.Size.X / 2 then
KillerHumanoidRootPart.CanCollide = false
else
KillerHumanoidRootPart.CanCollide = true
end
end
end

while wait(0.1) do
DisableCollisionInSafezone()
end

change this

local Safezone = workspace:WaitForChild("Safezone")
local partFolder = Safezone:WaitForChild("partFolder")

local KillerHumanoidRootPart = Killer:FindFirstChild("HumanoidRootPart")

local function DisableCollisionInSafezone()
if KillerHumanoidRootPart and Safezone then
local distance = (KillerHumanoidRootPart.Position - Safezone.Position).Magnitude
if distance <= Safezone.Size.X / 2 then
-- Safezone içinde çarpışmayı devre dışı bırak
for _, part in pairs(partFolder:GetChildren()) do
if part:IsA("Part") then
part.CanCollide = false
end
end
else

        for _, part in pairs(partFolder:GetChildren()) do
            if part:IsA("Part") then
                part.CanCollide = true
            end
        end
    end
end

end

while wait(0.1) do
DisableCollisionInSafezone()
end

to this

pseudo finch
#

nun

#

his script is very fragile

#

one single mistake can cause errors

#

dood im so dum

#

instead of doing all this stuff i couldve jus done a small hole that the rake cant fit through

fast meteor
#

what is thr "killer"

pseudo finch
#

killer is the codename for the rake

fast meteor
#

"MainScript"

pseudo finch
#

what

#

do u mean by saifd

#

u mean saved?

fast meteor
pseudo finch
#

yeah what bout it

fast meteor
pseudo finch
#

code name for the rake

#

code name is bassicaly a secretted out name

fast meteor
#

variable

#

?

#

you mean variable?

pseudo finch
#

yes bassicaly

#

i recognise killer in there easier

#

much better

fast meteor
#

add this:

pseudo finch
#

now the safezone is actually work

#

in

fast meteor
#

on top of script

pseudo finch
#

ok wait bro

#

i fixed it

devout wing
#

@pseudo finch You can use pathfindingmodifier

pseudo finch
#

i jus added a tiny hole that he cant go through

pseudo finch
#

THIS WHOLE TIME

devout wing
#

basically blocks path finding

pseudo finch
#
fast meteor
pseudo finch
pseudo finch
#

yes

#

it has a day/night system

#

its an old remake of a game called "the rake"

#

i was a huge fan of it back in the day

#

(i still am)

devout wing
#

you have found the solution? or havent?

pseudo finch
#

i have

#

i jus got timed out

#

for sending the game link

#

yall should try the rake its a quite well done game