Roblox Studio - NPC Shop Gui

Аватар автора
Игровая Реальность и Эффекты
In this video i created a shop gui that can be activated by clicking on an NPC&head. I later on used the shop gui within a weaponsmith that took pretty long to make. Also if you like this video subscribe and leave a like! Script: game.Workspace.ShopKeeper.Head.ClickDetector.MouseClick:Connect(function(player) player.PlayerGui.ShopGui.Enabled = true player.PlayerGui.ShopGui.MainFrame.ButtonFrame.ExitButton.MouseButton1Click:Connect(function() player.PlayerGui.ShopGui.Enabled = false end) player.PlayerGui.ShopGui.MainFrame.ButtonFrame.Sword5.MouseButton1Click:Connect(function() player.PlayerGui.Confirmation.Enabled = true player.PlayerGui.Confirmation.Frame.NoButton.MouseButton1Click:Connect(function() player.PlayerGui.Confirmation.Enabled = false end) player.PlayerGui.Confirmation.Frame.YesButton.MouseButton1Click:Connect(function() if not player.Backpack:findFirstChild(&then local SwordClone = game.ReplicatedStorage.Sword:Clone() SwordClone.Parent = player.Backpack player.PlayerGui.Confirmation.Enabled = false else player.PlayerGui.Confirmation.Enabled = false end end) end) player.PlayerGui.ShopGui.MainFrame.ButtonFrame.Sword10.MouseButton1Click:Connect(function() player.PlayerGui.Confirmation.Enabled = true player.PlayerGui.Confirmation.Frame.YesButton.MouseButton1Click:Connect(function() if not player.Backpack:findFirstChild(&then local LongSwordClone = game.ReplicatedStorage.LongSword:Clone(...

0/0


0/0

0/0

0/0