Invetory dont shows pls help

hello all im doing pvp game and there a problem with value and script

when value is true invetory is hiding but when im dead value is changing to false and mouse enable

but script when i die dont working there a video and script of problem

robloxapp-20240620-1413330.wmv (1.9 MB)

game.Players.LocalPlayer:WaitForChild(“Character”):WaitForChild(“Humanoid”).ChildAdded:connect(function(char)

  • game.Players.LocalPlayer.PlayerScripts.options.inv.Value = false*
  • game:GetService(“UserInputService”).MouseIconEnabled = true*
    end)
local player = game.Players.LocalPlayer
local userInputService = game:GetService('UserInputService')

player.CharacterAdded:Connect(function(newCharacter)
  newCharacter:WaitForChild('Humanoid').Died:Connect(function()
      player.PlayerScripts.options.inv.Value = false
      userInputService.MouseIconEnabled = true
  end)
end)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.