I have no idea why this isn't working

I am simply trying to reference a Module script from a local script, it works in my other scripts but not this one, I have no idea why it isn’t working

local GameModulething = require(game.ServerStorage.GameModule)

local Frame = script.Parent
local TweenSevice = game:GetService("TweenService")
local player = game.Players.LocalPlayer
local Backpack = player.Backpack
local GenderFolder = Backpack.Gender
local Male = GenderFolder.Male
local Female = GenderFolder.Female
local camscript = player.Backpack.CameraThing
local camera = game.Workspace.CurrentCamera
local Character = player.Character
if not Character or not Character.Parent then
	Character = player.CharacterAdded:wait()
end

script.Parent.MaleSelect.MouseButton1Click:Connect(function()
	local TweenInfoo = TweenInfo.new(.5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false, 0)
	local TweenProperties = {
		Position = UDim2.new(0,0,-1,0)
	}
	local Tween = TweenSevice:Create(Frame, TweenInfoo, TweenProperties)
	Tween:Play()
	GameModulething.GenderSelect(player, "Male")
	camscript.Disabled = true
	for i = 0, 1, .1 do
		camera.CFrame = camera.CFrame:Lerp(Character.Head.CFrame, i)
		wait()
	end
	repeat wait()
		camera.CameraType = Enum.CameraType.Custom
	until camera.CameraType == Enum.CameraType.Custom
end)

script.Parent.FemaleSelect.MouseButton1Click:Connect(function()
	local TweenInfoo = TweenInfo.new(.5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false, 0)
	local TweenProperties = {
		Position = UDim2.new(0,0,-1,0)
	}
	local Tween = TweenSevice:Create(Frame, TweenInfoo, TweenProperties)
	Tween:Play()
	GameModulething.GenderSelect(player, "Female")
end)

iahvenoidea

Clients have no access to the ServerStorage service. It can be viewed only by the server. You can move it into ReplicatedStorage.

1 Like