#Game Help

1 messages · Page 1 of 1 (latest)

humble kraken
#

I am not sure what to do

gentle waveBOT
#

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

old swan
#

core event doesn't exist

loud ferry
#

Change wait for child into find first child

humble kraken
uncut sluice
#

no first you have to make the core event

#

right now its nil

#

thats why its yielding the thread and nothing is happening

humble kraken
#

How would you do that

uncut sluice
#

what kind of instance do you want core event to be

#

a bindable event or remote

humble kraken
#

Idk all I know is that I need to get units to spawn on a path

uncut sluice
#

so do you need core event or not?

#

because if you dont then just delete that line

humble kraken
#

I will delete it and see what happens

#

Now there are things that have core event in it with a blue line underneath

uncut sluice
#

send the full script

humble kraken
uncut sluice
#

CoreEvent:FireAllClients("LockBase", Base)
here you use the fire all clients method, so core event should be a remote event in replicated storage

#

make sure the remote event is named properly when you create it

humble kraken
#

Where do I put iy

#

it

uncut sluice
#

did you use ai to make this for you

humble kraken
#

no

uncut sluice
humble kraken
uncut sluice
#

thats not code that i made i was just referencing a piece of your code

humble kraken
#

ok

#

Im trying it

uncut sluice
#

with core event you used a method called fire all clients which sends information to every client in the game from the server

humble kraken
#

now they are not spawning and moving on the path

humble kraken
#

@uncut sluice

uncut sluice
#

pivot the model to the spawn part or position

humble kraken
uncut sluice
#

you parented the model to workspace not npcfolder

humble kraken
#

what model

uncut sluice
#

local function SpawnNPC()
NPCModel.Parent = workspace

#

line 125

humble kraken
#

is that what i should change it to

uncut sluice
#

change it to npcfolder

#

NPCModel.Parent = NPCFolder

humble kraken
gentle waveBOT
#

studio** You are now Level 3! **studio

humble kraken
uncut sluice
#

cant you just do this? NPCMove(NPCModel) in the spawn npc function

#

and then get rid of the child added connection

humble kraken
#

What line

uncut sluice
#

you can do control f and search for childadded

humble kraken
#

now this is here

humble kraken
uncut sluice
#

no delete that entire block from 132 to 137 and add NPCMove(NPCModel) in the SpawnNPC function

uncut sluice
#

yes

humble kraken
#

I bet there's another error

#

Its the same one

uncut sluice
#

add walk animation to npc model

gentle waveBOT
#

studio** You are now Level 6! **studio

humble kraken
#

So in rig put walk animation??

uncut sluice
#

yes because thats where it is in the code

humble kraken
#

Okay well not my npcfolfer in not in server storage

uncut sluice
#

where is it

humble kraken
#

Nvm

#

How do you add walk animation like what

uncut sluice
#

do you not have an animation called walk animation?

humble kraken
#

Like animation?

uncut sluice
#

then why do you have it there

humble kraken
#

Idk

#

Should I just get rid of it

uncut sluice
#

yes

humble kraken
#

Let's see the error this time

uncut sluice
#

are you the one who wrote this or was it someone else

humble kraken
#

Now there is no bug but they are not spawning

cyan vector
humble kraken
#

They are just not there

humble kraken
uncut sluice
#

dude youre asking me to code the entire thing for you

cyan vector
#

npc position not set when spawned, pathfinding code is incorrect and pathfinds immediately to the end, and bonus points for missing datastores for the leaderstats 🤷

#

i do wonder how people get this far without picking up a single shred of knowledge or problem solving ability along the way 🤷

flat crystal
spice mulch