#How do you use ModuleScripts that are in the ServerStorage?

1 messages · Page 1 of 1 (latest)

royal umbra
#

I'm trying to use a hitbox module that I put into the ServerStorage but I keep getting this error:
Infinite yield possible on 'ServerStorage:WaitForChild("MuchachoHitbox")'
What do I do??

static lake
royal umbra
glacial sigil
#

in serverstorage.modules

glacial sigil
jaunty slate
#

Hey. That sometimes happens in studio, maybe you can do a pcall function to check if it exists when you are requering it

royal umbra
glacial sigil
#

Modules

static lake
glacial sigil
#

theres no modules there gango

royal umbra
#

it says inf yield on modules aswell

glacial sigil
royal umbra
jaunty slate
#

make a folder called Modules and put the muchacohitbox there

glacial sigil
#

do
game:GetService("ServerStorage")

jaunty slate
royal umbra
#

i did

jaunty slate
#

insert a folder into serverstorage, rename it to Modules then place muchacohitbox inside

glacial sigil
jaunty slate
#

then try what Zod said

glacial sigil
#

in serverstorage

royal umbra
#

?

glacial sigil
#

send the

#

whole script

royal umbra
glacial sigil
#

instead of .Modules

jaunty slate
#

that's a local script?

static lake
# royal umbra

i don't think he can access anything in serverstorage in a local script

glacial sigil
#

that might be true

jaunty slate
#

if it is a local script it will fail

glacial sigil
#

move modules into

#

ReplicatedStorage

royal umbra
glacial sigil
#

you cant get player from a server script

royal umbra
#

u can?

jaunty slate
glacial sigil
#

no

glacial sigil
#

get the

#

localplayer

#

u have to implement a playeradded function

jaunty slate
#

but maybe it is on a server sided script😬

gray vortexBOT
#

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

royal umbra
glacial sigil
#

😭

#

yeah

#

u can get the player

#

but not the local player

glacial sigil
static lake
glacial sigil
#

ur getting the local player

jaunty slate
#

local player is for local scripts, won't work in server sided scripts, playeradded for server sided and client sided scripts

glacial sigil
#

if its not a localscript*

#

it wont work

royal umbra
#

damn

jaunty slate
#

try using the module in ReplicatedStorage

royal umbra
#

oh

#

it works on server scripts

glacial sigil
#

userinputservice wont work on server scripts

#

😭

royal umbra
#

omd 💔

jaunty slate
glacial sigil
static lake
glacial sigil
#

i said u cant get the input from a server script

royal umbra
gray vortexBOT
#

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

tulip lark
#

this is so active

static lake
#

how does bro have a year and is doing this

#

you have more time than me

royal umbra
static lake
#

must be a language barrier

royal umbra
jaunty slate
static lake
royal umbra
#

i speak fluent english gng 💔

#

fym 🤖

#

stop 💔

#

anyways ts is solved now ty

#

STOP

#

nah id mute