wait(1)
---- Services ----
local RepStorage = game:GetService("ReplicatedStorage")
local UserInputServer = game:GetService("UserInputService")
local Remote = RepStorage:WaitForChild("IceEvent")
local Player = game.Players.LocalPlayer
local Character = Player.Character
local humanoid = Character:WaitForChild("Humanoid")
-- Settings --
local Cooldown = true
local Key = "R"
UserInputServer.InputBegan:Connect(function(Input,IsTyping)
if game.Players.LocalPlayer.leaderstats.Quirk.Value == 1 and game.Players.LocalPlayer.leaderstats.Active.Value == true then
if IsTyping then return end
local KeyPressed = Input.KeyCode
if KeyPressed == Enum.KeyCode[Key] and Cooldown and Character then
Cooldown = false
print("Event Fired")
Remote:FireServer()
wait(8)
print("Cooldown over")
Cooldown = true
end
end
end)
I made sure the boolvalue is true But it does not give an output error and the abilty does not work When i leave the Active value out it works What am i doing wrong?

3 comments
You can’t store Boolean Values as a Leaderstat, I don’t believe. Try moving it within ReplicatedStorage
But it is only for a localplayer
Then store it under StarterPlayer