function die() script.Parent.Parent.Parent.ShopFrame.Visible = false script.Parent.Parent.Parent.Frame.TextLabel.Visible = true local player = game.Players.LocalPlayer player.Character.Torso.Anchored = true end script.Parent.MouseButton1Down:connect(die)
What it does is it makes the other guis not to be shown and is supposed to anchor the player when in shop.
Change the player.Character.Torso.Anchored = false to player.Character.Torso.Anchored = true .
Hope this helps.
function die() script.Parent.Parent.Parent.ShopFrame.Visible = false script.Parent.Parent.Parent.Frame.TextLabel.Visible = true player = game.Players.Name for i,v in pairs(game.Players.Name) --Get players name in a loop player.Character.Torso.Anchored = false script.Parent.MouseButton1Down:connect(die)