Script worked a few days ago. Suddenly doesn't work.
real = false
script.Parent.Equipped:Connect(function()
real = true
end)
script.Parent.Unequipped:Connect(function()
real = false
end)
game:GetService("Players").PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local LocalPlayer = game:GetService("Players").LocalPlayer
local Controls = require(LocalPlayer.PlayerScripts.PlayerModule):GetControls()
local UIS = game:GetService("UserInputService")
local character = game.Workspace:WaitForChild(game.Players.LocalPlayer.Name)
local boom = character:WaitForChild("Humanoid") :LoadAnimation(script:WaitForChild("boom"))
UIS.InputBegan:Connect(function(key,chat)
if chat then return end
if real == false then return end
if key.KeyCode == Enum.KeyCode.E then
boom:play()
end
end)
end)
end)
Did the new studio update break UIS?

4 comments
Why are you putting your variables in connections again (im the same guy who helped you before)
What's the output saying?
Output is silent.
The location of the variables doesn't matter if it works (or worked) im trying to figure out why UIS has stopped working suddenly