local moulue = require(script.Parent:WaitForChild("ModuleScript")) local player = game.Players.LocalPlayer local mouse = player:GetMouse() script.Parent.Activated:Connect(function() module.Throw() end)
This was the code can I get some help fixing it?
local module = {} local replicatedStorage = game:GetService("ReplicatedStorage") function module.Throw() replicatedStorage.Remotes.Throw:FireServer() end return module
This is the module script.
Nil = nothing , it appears you have spelled module wrong on line 1.
The server is telling you module is not a thing, because it is not set by you correctly. You wrote local moulue
instead of module
Hope this helps !