Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

what does LocalScript:6: Expected ')' (to close '(' at line 5), got 'module' mean?

I was following a video on how to make a simulator and I copied the code and when I went to check if when I clicked it gave me strength it showed this in output Players.philipjf.Backpack.Weight.LocalScript:6: Expected ')' (to close '(' at line 5), got 'module' this is the whole local script below

local module = require(script.Parent:WaitForChild("ModuleScript"))
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()

script.Parent.Activated:connect(Function()
    module.Lift()


end)

5 comments

0

can you post the script

0

These types of errors means that you either added an extra end somewhere in the code or you didnt add a ) at line 6 where end is.

0

its also red under module and it says Expected ')' (to close '(' at line 5), got 'module' when i hover over it

0

I dont have a end at line 6 only module.Lift()

0

You capitalized the f in function. It has to be lowercase.

1 answer

E


6 comments

0

You have so much reputation, and you decide to post THIS.

0

it worked omgomgogm

0

your downvote meanss nothing to me plebs!

0

beautiful answer. good job. beautiful. i love this, keep up your good work.

0

^ smart person

0

This is the kind of quality I want to see more of on this site.

This discussion is preserved as it was. New answers, comments, and votes are closed.