IsResistant (boolean) is not a valid member of ServerStorage "ServerStorage"

Hi! So I ran into an error while scripting an animation and aura turning on keybind (its a localscript). I tried to make a boolean change values, but it gave me an error. Here is my script:

local Player = game.Players.LocalPlayer

local Character = Player.Character

local Event = game.ReplicatedStorage:WaitForChild("AuraOn")

local Toggel = false

local humanoid = Character:WaitForChild("Humanoid")

local uis = game:GetService("UserInputService")

local value = game.ServerStorage.IsResistant

local anim = Instance.new("Animation")

anim.AnimationId = "rbxassetid://0"

function onKeyPressed(inputObject, gameProcessEvent)

if inputObject.KeyCode == Enum.KeyCode.K then

humanoid:LoadAnimation(anim):Play()

end

if Toggel == false then

Toggel = true

Event:FireServer(Character,true)

end

value.Value = true

end

uis.InputBegan:Connect(onKeyPressed)

(Dont mind the animation id)
image
Here is my explorer for ā€œIsResistantā€.

The error message is ā€œIsResistant is not a valid member of ServerStorage ā€˜ServerStorageā€™ā€

The contents of ServerStorage are inaccessible to clients, so move the value to ReplicatedStorage instead.

3 Likes

Thank you!

agWEDgasggfawsfdgasfdhawjd