#Tower Defense Game, need help
73 messages · Page 1 of 1 (latest)
where abouts, if u can help
oh wait
still doesn't work, srry
modulescript name is Mob right?
any other ideas?
take ss of the path
okay, i fixed it slightly
the error is no longer showing
now the warning is showing
but i MIGHT be able to fix
im gonna remake the zombie and put it in replicatedstorage
** You are now Level 1! **
ok
still didnt work
NEW PROBLEM:
I have a zombie in workspace, where do i put it so the scripts mentioned above recognise it?
okay im just making this worse
so
Server storage, yet I would change the script to use replicated storage
okay, 1 second tho
gotta sort out the other problems i've created
okay, heres the problem
Script 1: Normal script
Script 2: Module script
module script is in normal script, which is in serverscriptstorage
error is this:
ServerScriptService.Main:4: attempt to index nil with 'Spawn' - Server - Main:4
do u know how to fix this
oh
or task.spawn()
wait sorry im getting rlly confused
for the defining mob stuff, i realised that local zombie is meant to be local mob
you need to use require to get stuff from a modulescript
okay
i fixed the error, and the only thing im getting is the warning
in the module script
im rlly sorry im new
for some reason
if your this new you shouldnt be doing spawning mechanics
"gnomecode"
** You are now Level 2! **
alr sorry for wasting your time
.spawn isnt a property of anything im pretty sure
also you can do this all in one script
local zombie = --blah blah
local map = workspace.Jungle
local function mobSpawn(name, map)
blah blah
end
mobSpawn(zombie, map)
also you put the zombie paramater as a string when its a variable
wait i got like 34 questions rn
1: whats a parameter
2: whats a string
3: ik what a variable is but rn im like REALLY confused rn like aaaaaaaa
im just gonna copy that script into the module script..
ok yea its clear you really do not know what youa re doing
you should probably learn scripting first
how should i do that? is there like a game for it