So I have the module right here:
local module = {}
module.setatribute = function()
local player = game.Players.LocalPlayer
local atribute = player:GetAttribute("UsingAbility")
atribute = true
end
module.uncheck = function ()
local player = game.Players.LocalPlayer
local atrib = player:GetAttribute("UsingAbility")
atrib = false
end
return module
and here is the local script in the starter player:
local player = game:GetService("Players")
local uis = game:GetService("UserInputService")
local mod2 = require(game.ReplicatedStorage.Modules.UsingAbility)
uis.InputBegan:Connect(function(input, gpe)
if gpe then
return
end
if input.KeyCode == Enum.KeyCode.Q then
mod2.setatribute()
print(123)
task.wait(1)
mod2.uncheck()
end
end)
It just wont print anything and then the atributes dont change.