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)