Hello! I am Dev_Asher and I am working on a find the markers remake but instead of markers there are Bunnies, I have 2 module scripts in Server Storage called Core and Modules. But every time I run the game all my scripts that require them say that Core and Modules are nil, I checked the explorer while I was in the game and it was not there, how do I fix this.
this is the code that is showing the errors
local ReplicatedService = game:GetService('ReplicatedStorage')
local Players = game:GetService('Players')
local BunnyFolder = workspace:WaitForChild('BunnysFolder')
local ReplicatedModules = require(ReplicatedService:WaitForChild('Modules'))
local BunnyConfig = ReplicatedModules.Bunnys
local BunnyModule = require(script:WaitForChild('MainBunny'))
local ServerStorage = game:GetService('ServerStorage')
local ServerModules = require(ServerStorage:WaitForChild('Modules'))
local ServerCore = require(ServerStorage:WaitForChild('Core'))
local DataService = require(ServerCore:WaitForChild('DataService'))
for i, Bunny in pairs(BunnyFolder:GetChildren()) do
if Bunny:IsA('Part') and Bunny.Parent == BunnyFolder then
Bunny.Touched:Connect(function(Hit)
local bunnyName = Bunny.Name
local bunnyID
for k, v in pairs (BunnyConfig.Bunnys) do
if k == bunnyName then
BunnyModule:CheckBunnyFromID(v, k)
break
end
end
local LocalPlayer = Players:GetPlayerFromCharacter(Hit.Parent)
local profile = DataService:GetPlayerProfile( LocalPlayer )
if not profile then
return false
end
end)
else
warn('Touched Part Not From Bunny Folder')
end
end