#Nothing happens when say /spooky
1 messages · Page 1 of 1 (latest)
scripts?
wait
k
uhh
Is this on a server script
yes
it makes the model at the location 0,0,0
and so?
are you checking there
also i dont think messaging service works if you do it on the same server
if im not wrong
what do you mean
ofc it works
wait
waiting
It looks like it should work
any errors
Do you know if the function is even called at all?
does spooky have a primarypart
yes
did you check in output?
or console -> server
@fallen warren
do you see spooky in workspace after the function was called?
like in the explorer
nope
ig
wtf
wdym ig
yes
can you add after when it's cloned
task.defer(function()
print(clone and clone.Parent)
end)
no
after when parent is set
and nothing happens
it printed nothing?
Most likely because the function never got fired
Is the connection to to the function there? Try putting a print at the top of the function
there's a problem not with the function but with the MessagingService part
** You are now Level 9! **
put it in a pcall or sum
local success, err = pcall(function()
MessagingService:SubscribeAsync(EVENT_NAME, function(message)
if message.Data == "spawn" then
spawnSpooky()
end
end)
end)
if not success then
warn("unreal", err)
end
He said there's no error
I think yes
but where
Try printing where it tries to check your chat msg
You can test from studio
not important but this looks like it was coded with ai 🥀
nope
not yet
issue 1:
-# this might be my idiotness showing
you publish "spawn" to the messaging service, but you listen to EVENT_NAME
issue 2:
-# performance related
instead of checking when a player chats every time, first check if they're an admin and then start listening to the .chatted event
issue 3:
spookyModel might not be a model; check for that
recommandations:
- re-read the documents for MessagingService
- add prints everywhere
the second argument is the message not anything useful in this case
arg
sorry
i never used that service
buut why do you input it
if it's not useful
idk
@minor hearth we are guy gardener 2000
how did you find this
ima try
good luck
me too
if not working ima do admin panel
lol
💔
why are you using messagingservice here
the subscribe probably doesn't fire on the same server a message was published
or it may just be studio
the docs will probably say, or you can just test that
FINALLY IT WORKS
you're welcome 