There's no error, this is inside a script inside a tool, it is NOT in a local script however it only works in play solo
local Module = require(game.ServerScriptService.ModuleScript)
script.Parent.Equipped:connect(function(Mouse)
Mouse.Button1Down:connect(function()
if Mouse.Target and Mouse.Target.Parent.Parent:FindFirstChild('IsCellDoor') and Mouse.Target.Parent.Name == 'Door' then
Module.CloseCell(Mouse.Target.Parent.Parent.Name,false)
script.Parent:Destroy()
end
end)
end)
|