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?