#Scripts not loading HELP

1 messages · Page 1 of 1 (latest)

flint shadow
#

why my WeatherManager never runs, like i added a print line on top to check but it prints WeatherModule, WeatherSpawner but never prints WeatherManager

flint shadow
wintry gulch
#

require it normally

#

and see if it works

flint shadow
# wintry gulch and see if it works

alr so for testing i did this

nope i did this

-- WeatherSpawner.lua
-- Picks random weathers and delegates handling to WeatherManager

print("[WeatherSpawner] Script started!")

local ServerScriptService = game:GetService("ServerScriptService")

-- Require modules
local WeatherModule = require(ServerScriptService.Modules.Weather:WaitForChild("WeatherModule"))
local WeatherManager = require(ServerScriptService.Modules.Weather:WaitForChild("WeatherManager"))

WeatherManager.Test()
print("[WeatherManager] Module loaded")

local WeatherManager = {}

function WeatherManager.Test ()
    
 print("WORKS!!! also u noob")
end
return WeatherManager

Still only prints WeatherManager and WeatherModule

wintry gulch
#

whiuch one doesnt work

flint shadow
#

There is a WeatherSpawner, which spawns weather by using the functions of WeatherManager (this dont work) (this has fucntions like Weather.Play Pause etc etc), and Spawner also uses WeatherModule which is just table with weather data

flint shadow
sullen zephyrBOT
#

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

wintry gulch
#

just

#

make a new script

#

empty

#

require the module u dont see working

#

plz

flint shadow
wintry gulch
#

FULL

#

if nothing is printing then weird

flint shadow
#

@wintry gulch

wintry gulch
#

turn the output on

#

and

#

take a new ss

#

with it ran

flint shadow
wintry gulch
#

may i ask

flint shadow
#

then pressing F9

wintry gulch
#

oh console

#

just use output

#

way easier

#

go to view tab

#

top left

#

and click i think 1st-3rd small icon

flint shadow
#

WHAT THIS THING EXCISTED WTF

hybrid hornet
#

ok

sullen zephyrBOT
#

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

flint shadow
hybrid hornet
#

Y

wintry gulch
#

it shows output yea

#

but rrm

#

still basolutely nothng???

flint shadow
wintry gulch
#

idfk what u broke icl

flint shadow
flint shadow
flint shadow
solid steeple
#

Just a stupid question, did u check if script is enabled?

wintry gulch