local InputImageLibrary = require(408470686)
local player = game.Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui", playerGui)
 
local l3Image = InputImageLibrary:GetImageLabel("ButtonL3", "Dark")
l3Image.Parent = screenGui

This is inside a module script. The module script is inside workspace. This is what is on the wiki but it doesn't work. Please help.

An explanation would be amazing, but mainly just looking for the answer

7 comments

1

A module script does not run on its own, it runs when the require() is called. Place this in a local script in the player starter scripts.

0

Place the code in a local script? Or the modulescript inside the localscript?

0

MODULESCRIPTS DON'T WORK ON THEIR OWN THEY NEED TO BE REQUIRED WHAT IS SO HARD TO UNDERSTAND

0

Don't need to get your pants in a knot

1

I do if you've asked the same question so many times and you've been stupid about it in every single one.

0

I put the code in a LocalScript and inside PlayerStarterScripts. It works in Play Solo, but when I go online it says require cannot be called from client

0

That's because it can't require by id. Take the model, insert it into your game. Was that so hard?