Ad
Log in to vote
0

User input service not working suddenly?

Asked by 16 days ago

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?

0
Why are you putting your variables in connections again (im the same guy who helped you before) Kingu_Criminal 170 — 15d
0
What's the output saying? miner561473 17 — 15d
0
Output is silent. iiFloxy 9 — 14d
0
The location of the variables doesn't matter if it works (or worked) im trying to figure out why UIS has stopped working suddenly iiFloxy 9 — 14d

Answer this question