"Rooms is not a valid member of ServerScriptService"

So the title says it all. I’ve made a module script and placed it within a folder that’s within another folder that’s parented by ServerScriptService. that script was to be required by a local script. Unfortunately, When I play, the output says: “Rooms is not a valid member of ServerScriptService”

Here’s the local script:

local RmtEvent = game.ReplicatedStorage.RemoteEvents.RoomEvents.Room1
local Camera = workspace.CurrentCamera
local Object = game.Workspace.BloxVille.Rooms.Room1.Observe
local Player = game.Players.LocalPlayer
repeat wait() until Player.Character
local TS = game:GetService("TweenService")
local Active = game.ReplicatedStorage.Values.Room1.Value
local ModScript = require(game.ServerScriptService.Rooms.ModuleScripts.MS1) --Right here--

local tweenInfo = TweenInfo.new(0.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut)
local Properties = {CFrame = Object.CFrame}

local Tween = TS:Create(Camera, tweenInfo, Properties)

RmtEvent.OnClientEvent:Connect(function()
	if Active == false then
	    Camera.CameraType = Enum.CameraType.Scriptable
	    wait(0.2)
	    Camera.CameraSubject = ModScript.Variable1
	    Tween:Play()
		print("Yay! :D")
    end	
end)

Are there any errors I’ve placed? Let me know! :smiley:

Change it to
local Active = game.ReplicatedStorage.Values:WaitForChild(“Room1”).Value

1 Like

ServerScriptService is only serverscripts local scripts can’t access it make sure and @Wizzardofaz also is right

This will help alot make sure to have a good day! ServerScriptService | Documentation - Roblox Creator Hub