local Players = game:GetService("Players") local ServerStorage = game:GetService("ServerStorage") Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function() local gui = Instance.new("ScreenGui") gui.Name = "WeaponGUI" gui.ResetOnSpawn = false local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 220, 0, 120) frame.Position = UDim2.new(0.5, -110, 0.5, -60) frame.BackgroundColor3 = Color3.fromRGB(35, 35, 45) frame.BorderSizePixel = 0 frame.Parent = gui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 12) corner.Parent = frame local title = Instance.new("TextLabel") title.Size = UDim2.new(1, 0, 0, 40) title.BackgroundTransparency = 1 title.Text = "Weapon Menu" title.TextScaled = true title.TextColor3 = Color3.new(1,1,1) title.Parent = frame local button = Instance.new("TextButton") button.Size = UDim2.new(0.8, 0, 0, 40) button.Position = UDim2.new(0.1, 0, 0.55, 0) button.Text = "🗡 Sword" button.TextScaled = true button.BackgroundColor3 = Color3.fromRGB(0, 170, 255) button.TextColor3 = Color3.new(1,1,1) button.Parent = frame local bCorner = Instance.new("UICorner") bCorner.CornerRadius = UDim.new(0, 8) bCorner.Parent = button gui.Parent = player:WaitForChild("PlayerGui") button.MouseButton1Click:Connect(function() if not player.Backpack:FindFirstChild("LinkedSword") then local sword = ServerStorage:FindFirstChild("LinkedSword") if sword then sword:Clone().Parent = player.Backpack end end end) end) end)