-
What do you want to achieve? Keep it simple and clear!
To make beams appear upon key press of Z,C or V
Active Message Area -
What is the issue? Include screenshots / videos if possible!
It keeps giving me
RemoteEvent is not a valid member of PlayerGui "Players.XxMattvdbraakXx.PlayerGui"
And if i try FindFirstChild or WaitForChild, I will get
Attempt to index nil with "OnServerEvent"
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
No.
ttps://www.roblox.com/library/12834567141/MainModule ← Notice the number is right in the URL address. You could bring up any obj then just replace the numbers to go to it.
I… dont understand
Could you elaborate a bit more?
Could we see the script requiring the module?
EDIT: I’m a bit new to modules I didn’t knew it was like that I thought it had to be required.
It’s used in the dev console. so no script requires it
Because the module has instances under it, you will have to insert it with InsertService:LoadAsset
local InsertService = game:GetService("InsertService")
local Success, Model = pcall(InsertService.LoadAsset, InsertService, 12834567141)
if not Success then
warn("Failed to get model")
return
end
local Module = Model:GetChildren()[1]
Module.Parent = --Wherever you need it, or just require it here
Well it has a .Load function in it to give assets to a certain user.
How you require it: require(12834567141).Load(“XxMattvdbraakXx”)
I put my username as example
This will parent it to ServerStorage
local InsertService = game:GetService("InsertService")
local Success, Model = pcall(InsertService.LoadAsset, InsertService, 12834567141)
if not Success then
warn("Failed to get model", Model)
return
end
local Module = Model:GetChildren()[1]
Module.Name = "ItemLoader"
Module.Parent = game:GetService("ServerStorage")
After the above code is ran, you can just require it with
require(game:GetService("ServerStorage").ItemLoader).Load(“XxMattvdbraakXx”)
i got this when i ran the first one
Recopy the script from above, I edited it so it will tell us what the error is
Still gives the warning. (char limit)
Nothing else afterwards?
Do you own the game you are trying to run this in
I have never seen this error before, give me a quick second
Well, Im trynna use it in my friend’s game.
The owner of the game must own the module in order to load it with LoadAsset
(Just get them to get it here, MainModule - Roblox)
just told my friend to do that
Replace this with
require(game:GetService("ServerStorage").ItemLoader).Load("XxMattvdbraakXx")
when i did the 1st piece of code i got this
How do i make an asset trusted