#Enemy Spawner

1 messages · Page 1 of 1 (latest)

opaque iris
#

I want to make a tool that when i have it equipped it opens a little menu with some enemies and when i select one and click with my cursor on the map it spawns it there. I kind of did this but when the enemy spawned it didnt move

drowsy ridge
opaque iris
drowsy ridge
#

Put a locakscript on the tool and when equipped open the gui

opaque iris
#

@drowsy ridge

#

hey

#

can u help me rq?

drowsy ridge
#

sure

opaque iris
#

let me get a clip

#

oh wait

#

ama put it with stremeable

#

so u dont ahve to download it

#

when i spawn the enemy it doesnt move and it has the same scipt as the one i show before

#

so ig it should do the same but it doesnt

drowsy ridge
#

are you spawning the enemy localy?

#

or do you use a remote event

#

to tell the server to spawn it

opaque iris
#

with localy what do u mean

green craneBOT
#

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

opaque iris
#

im kinda new in dev srry

drowsy ridge
#

do you spawn the enemy in a localscript

opaque iris
#

yh

drowsy ridge
#

dont do that

opaque iris
#

its a tool with a localscript in it

#

oh

drowsy ridge
#

use a serverscript

#

lemme see your tools script

opaque iris
#

it only has the script to create the GUI

#

but if u want i send it

drowsy ridge
#

wait nvm

#

one sec

#

what you want to do is add a remote event in replicatedStorage
then when you want to spawn something use the event to send a message to the server
then spawn the creature in the server script

opaque iris
#

k

#

ama try it

#

it worked

#

tysm