local module = require(script.Parent:WaitForChild("ModuleScript")) local player = game.Players.LocalPlayer local mouse = player:GetMouse() script.Parent.Activated:Connect(function module.Lift end)
I'm bad at scripting so can someone please help me.
local module = require(script.Parent:WaitForChild("ModuleScript")) local player = game.Players.LocalPlayer local mouse = player:GetMouse()
script.Parent.Activated:Connect(function(module.Lift)) end) Please accept this answer if it works
I suppose this is what you're trying to do
local module = require(script.Parent:WaitForChild("ModuleScript")) local player = game.Players.LocalPlayer local mouse = player:GetMouse() script.Parent.Activated:Connect(function() module.Lift() end)
local module = require(script.Parent:WaitForChild("ModuleScript")) local player = game.Players.LocalPlayer local mouse = player:GetMouse() script.Parent.Activated:Connect(function() module.Lift() end)
Module.lift is not a valid function name so I think you're trying to make a function that runs:
module.Lift()